*[uitest] Modify waittime.

This commit is contained in:
yulujie
2025-11-14 09:15:58 +08:00
parent b4b17b18a8
commit 73d97ff0d1
3 changed files with 22 additions and 1 deletions
@@ -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('用例数量不正确');
}
+20
View File
@@ -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__);