openKylin论坛

 找回密码

CheckboxTestCases - Checkbox(复选框)测试用例 [复制链接]

*温馨提示:本人英文能力有限,翻译不当之处还望大家跟帖指正,共同学习、进步!*

http://testcases.qa.ubuntu.com/CheckboxTestCases
CheckboxTestCases
Checkbox(复选框)测试用例

Before you Begin
开始之前

You should ensure that you have a development enviroment setup on launchpad and you can check out and check in code using bzr. If you need help at any point, please ask on freenode @ #ubuntu-testing.
你要确保你在launchpad上有一个开发环境设置并且你可以使用bzr导入和导出代码。如果你在任何方面需呀帮助,请在自由节点@ #ubuntu-testing上进行询问。

Getting the tests for checkbox
获取Checkbox(复选框)中的测试

All of the manual application tests for checkbox are in a branch in Launchpad. Get it with:
Checkbox(复选框)中的所有的手动应用程序测试都在launchpad的一个分支上。获取它使用:

bzr branch lp:~nskaggs/checkbox/checkbox-app-testing-qt
Inside the branch you will see a jobs directory. To create a job, you need to create a new file in this directory in the proper format.
在这个分支你将看到一个工作目录。为创建一个工作项,你需要在目录中创建一个适当格式的新文件。

How Checkbox Tests Work
Checkbox(复选框)测试怎样工作

Have a look at these two wiki pages, they will give you an overview of checkbox and how the test work:
看看这两个wiki页面,它们将给你一个Checkbox(复选框)和测试怎样工作的概述:

https://wiki.ubuntu.com/Testing/Automation/Checkbox
https://wiki.ubuntu.com/Testing/Automation/Checkbox/Walkthrough

Note, as of checkbox-qt the above pages are in need of an update to show the new test format; see the example tests in the jobs folder inside the branch itself.
注意,在上述页面的checkbox-qt需要更新以显示新的测试格式;在分支的工作文件夹查看测试的例子。

Writing a Checkbox Test
编写一个Checkbox(复选框)测试

It's important you follow the format shown in the checkbox walk-through page above. In addition, there is are examples in the jobs folder for you to copy. You can duplicate and change one of the tests to help you get started. Let's walk-through doing a simple test.
按照格式显示Checkbox(复选框)在演练页面上是重要的。此外,在工作文件夹有一个例子供你拷贝。你可以重复和改变其中一个测试帮助你开始。让walk-through运行一个简单的测试。

Copy a test file *.txt.in file in the jobs subfolder.
Edit the steps, the requires, the test name, the depends and the description.
Add an entry for your new file in local.txt.in. You can follow the format as show in the file, updating to reference your filename and description.
Run the checkbox application and verify tests show up in the menu and work properly
在工作子文件夹拷贝一个测试文件*.txt.in文件。
编辑步骤,需求,测试名,依赖和和描述。
为你的新文件在local.txt.in添加一个条目。你可以按照显示在文件中的格式,更新引用你的文件名和描述。
运行Checkbox(复选框)的应用程序和验证测试显示在菜单并工作正常的。

Making sure your tests work
确保你的测试在工作

First you need to change the bin file to set the variables to point to your local directory. The /bin/checkbox-app-testing file needs modified as follows:
首先,你需要改变bin文件设置变量以指向你的本地目录。/bin/checkbox-app-testing文件需要做如下修改:

Change
export CHECKBOX_SHARE=${CHECKBOX_SHARE:-/usr/share/checkbox-app-testing}
to
export CHECKBOX_SHARE=${CHECKBOX_SHARE:-.}

Change
export CHECKBOX_APP_TESTING_SHARE=${CHECKBOX_APP_TESTING_SHARE:-/usr/share/checkbox-app-testing}
to
export CHECKBOX_APP_TESTING_SHARE=${CHECKBOX_APP_TESTING_SHARE:-.}

Now, to 'test' your new test files, cd to the root directory of the branch and execute the following:
现在,“测试”你的新测试文件,cd到分支的根目录并执行:
./bin/checkbox-app-testing
This executes checkbox and you should see your new tests appear in the menu.
这个执行Checkbox(复选框)后你可以看到你的新测试出现在菜单里。

Contributing Your Tests
贡献你的测试

Before you contribute your branch, please ensure you have:
在你贡献你的分支时,请确保你有:

updated the jobs/local.txt.in file -- this serves up the menu of tests inside checkbox
created a new *.txt.in file for your test
ran and execute your tests successfully using ./bin/checkbox-app-testing
更新jobs/local.txt.in文件 -- 这在Checkbox(复选框)中提供了菜单的测试
为你的测试创建了一个新*.txt.in文件
通过使用./bin/checkbos-app-testing成功运行和执行了你的测试

To contribute your accomplishment, cd to the root of the branch and,
为贡献你的成就,cd到branch的根并且,

Add your new files: 添加你的新文件:
bzr add .
Commit your changes: 提交你的更改:
bzr commit -m "commit message"
Finally push your changes to Launchpad: 最后push你的更改到Launchpad:
bzr push lp:~your-lp-username/checkbox-app-testing-qt/your-branch-name

Now go to the branch in Launchpad and propose it for merging into `lp:~nskaggs/checkbox/checkbox-app-testing-qt. You can do so from this page:
现在到Launchpad上的分支并提议融合到`lp:~nskaggs/checkbox/checkbox-app-testing-qt。你可以在下面的页面进行:

https://code.launchpad.net/~nska ... -qt/+register-merge

发表于 2013-3-11 17:12:53
回复

使用道具 举报

CheckboxTestCases - Checkbox(复选框)测试用例 [复制链接]

lz辛苦了!能否举个具体的例子来说明操作的过程?
发表于 2013-3-11 22:55:39
回复

使用道具 举报

CheckboxTestCases - Checkbox(复选框)测试用例 [复制链接]

maclin 发表于 2013-3-11 22:55
lz辛苦了!能否举个具体的例子来说明操作的过程?

暂时还只是翻译了这些外文资料,没来得及实践!试过了一定发帖跟进
 楼主| 发表于 2013-3-12 13:31:48
回复

使用道具 举报

openKylin

GMT+8, 2024-3-29 02:04 , Processed in 0.017755 second(s), 18 queries , Gzip On.

Copyright ©2022 openKylin. All Rights Reserved .

ICP No. 15002470-12 Tianjin

快速回复 返回顶部 返回列表