diff --git a/module/execution/test/lib/createinlite.ui.class.php b/module/execution/test/lib/createinlite.ui.class.php index 92f8fbcfbc..3f24e3b624 100755 --- a/module/execution/test/lib/createinlite.ui.class.php +++ b/module/execution/test/lib/createinlite.ui.class.php @@ -93,7 +93,7 @@ class createExecutionTester extends tester /* 创建成功会跳转至看板列表全部标签下,从url中获取status字段内容 */ $form = $this->loadPage(); - $form->wait(1); + $form->wait(3); $url = explode('status=', $this->response('url')); /* 根据url中是否包含status,判断是否创建成功 */ if(!isset($url[1])) diff --git a/module/execution/test/lib/editexecution.ui.class.php b/module/execution/test/lib/editexecution.ui.class.php index 16aeb8e239..37a68c764b 100644 --- a/module/execution/test/lib/editexecution.ui.class.php +++ b/module/execution/test/lib/editexecution.ui.class.php @@ -22,6 +22,7 @@ class editExecutionTester extends tester if(isset($execution['products'])) $form->dom->products->picker($execution['products']); $form->dom->submit->click(); $form->wait(1); + return $form; } /** @@ -114,12 +115,10 @@ class editExecutionTester extends tester public function edit($execution) { $form = $this->editFields($execution); - /* 根据编辑弹窗中的保存按钮是否存在,判断是否编辑成功 */ - if(is_object($form->dom->submit)) return $this->failed("编辑执行失败"); + if($this->checkFormTips('execution')) return $this->success('编辑执行表单页提示信息正确'); /* 查看相关内容是否正确 */ $viewPage = $this->loadPage('execution', 'view'); $viewPage->wait(1); - if($this->checkFormTips('execution')) return $this->success('编辑执行表单页提示信息正确'); if(isset($execution['name']) && ($viewPage->dom->executionName->getText() != $execution['name'])) return $this->failed('编辑后执行名称错误'); if(isset($execution['begin']) && ($viewPage->dom->plannedBegin->getText() != $execution['begin'])) return $this->failed('编辑后计划开始时间错误'); if(isset($execution['end']) && ($viewPage->dom->plannedEnd->getText() != $execution['end'])) return $this->failed('编辑后计划完成时间错误'); diff --git a/module/execution/test/ui/editexecution.php b/module/execution/test/ui/editexecution.php index c69f1e7896..2b7ee07b36 100755 --- a/module/execution/test/ui/editexecution.php +++ b/module/execution/test/ui/editexecution.php @@ -6,6 +6,41 @@ title=编辑执行 timeout=0 cid=1 + +- 编辑执行成功 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行成功 +- 编辑看板成功 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行成功 +- 执行名称为空,编辑失败 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行表单页提示信息正确 +- 计划开始时间为空,编辑失败 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行表单页提示信息正确 +- 计划结束时间为空,编辑失败 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行表单页提示信息正确 +- 不同项目下同名执行,编辑成功 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行成功 +- 执行名称重复,编辑失败 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行表单页提示信息正确 +- 看板名称重复,编辑失败 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行表单页提示信息正确 +- 执行的计划开始时间早于项目的计划开始时间,编辑失败 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行表单页提示信息正确 +- 执行的计划结束时间晚于项目的计划结束时间,编辑失败 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行表单页提示信息正确 +- 编辑执行产品成功 + - 最终测试状态 @SUCCESS + - 测试结果 @编辑执行成功 + */ chdir(__DIR__);