*[uitest] Modify waittime.
This commit is contained in:
@@ -15,7 +15,7 @@ class treeTester extends tester
|
||||
public function checkTreeData($level, $num, $click = false)
|
||||
{
|
||||
$form = $this->initForm('execution', 'tree', array('execution' => '2'), 'appIframe-execution');
|
||||
$form->wait(1);
|
||||
$form->wait(2);
|
||||
if($click) $form->dom->onlyStoryBtn->click();
|
||||
$form->wait(1);
|
||||
if(count($form->dom->getElementList($form->dom->xpath[$level])->element) != $num) return $this->failed('数据错误');
|
||||
|
||||
@@ -16,6 +16,7 @@ class groupCaseTester extends tester
|
||||
{
|
||||
$form = $this->initForm('testtask', 'groupCase', array('taskID' => '1', 'browseType' => $tab), 'appIframe-qa');
|
||||
$caseXpath = "//div[@data-col='storyTitle']/div[text()='{$story}']";
|
||||
$form->wait(1);
|
||||
if(count($form->dom->getElementList($caseXpath)->element) == $num) return $this->success('用例数量正确');
|
||||
return $this->failed('用例数量不正确');
|
||||
}
|
||||
|
||||
@@ -5,6 +5,26 @@
|
||||
title=检查测试单下的分组视图
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
- 执行tester模块的checkNum方法,参数是'', '1'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @用例数量正确
|
||||
- 执行tester模块的checkNum方法,参数是'1', '2'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @用例数量正确
|
||||
- 执行tester模块的checkNum方法,参数是'2', '3'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @用例数量正确
|
||||
- 执行tester模块的checkNum方法,参数是'', '0', 'assignedtome'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @用例数量正确
|
||||
- 执行tester模块的checkNum方法,参数是'1', '2', 'assignedtome'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @用例数量正确
|
||||
- 执行tester模块的checkNum方法,参数是'2', '1', 'assignedtome'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @用例数量正确
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
|
||||
Reference in New Issue
Block a user