diff --git a/module/execution/test/lib/closeinlite.ui.class.php b/module/execution/test/lib/closeinlite.ui.class.php index a6a43591fb..655d4dce46 100644 --- a/module/execution/test/lib/closeinlite.ui.class.php +++ b/module/execution/test/lib/closeinlite.ui.class.php @@ -12,8 +12,6 @@ class closeExecutionTester extends tester */ public function inputFields($realEnd, $executionId) { - $this->switchVision('lite'); - $this->page->wait(5); $viewForm = $this->initForm('execution', 'view', array('execution' => $executionId), 'appIframe-project'); $viewForm->wait(1); $realBegan = $viewForm->dom->realBeganView->getText(); @@ -64,6 +62,8 @@ class closeExecutionTester extends tester */ public function closeWithGreaterDate($realEnd, $executionId) { + $this->switchVision('lite'); + $this->page->wait(5); $this->inputFields($realEnd, $executionId); $form = $this->loadPage(); $field = $form->dom->realEndField->getText(); diff --git a/module/execution/test/lib/createinlite.ui.class.php b/module/execution/test/lib/createinlite.ui.class.php index cf34739b8e..fa3c696a39 100755 --- a/module/execution/test/lib/createinlite.ui.class.php +++ b/module/execution/test/lib/createinlite.ui.class.php @@ -11,8 +11,6 @@ class createExecutionTester extends tester */ public function inputFields($execution) { - $this->switchVision('lite'); - $this->page->wait(5); $form = $this->initForm('execution', 'create', '', 'appIframe-project'); $form->wait(1); if(isset($execution['project'])) $form->dom->project->picker($execution['project']); @@ -90,6 +88,8 @@ class createExecutionTester extends tester */ public function create($execution, $module = 'execution') { + $this->switchVision('lite'); + $this->page->wait(5); $this->inputFields($execution); /* 创建成功会跳转至看板列表全部标签下,从url中获取status字段内容 */ diff --git a/module/execution/test/ui/createinlite.php b/module/execution/test/ui/createinlite.php index 47009b4fd9..cf09e003ab 100755 --- a/module/execution/test/ui/createinlite.php +++ b/module/execution/test/ui/createinlite.php @@ -6,6 +6,38 @@ title=运营界面创建看板 timeout=0 cid=1 + +- 创建看板成功 + - 最终测试状态 @SUCCESS + - 测试结果 @创建看板成功 +- 看板名称为空,创建失败 + - 最终测试状态 @SUCCESS + - 测试结果 @创建看板表单页提示信息正确 +- 看板代号为空,创建失败 + - 最终测试状态 @SUCCESS + - 测试结果 @创建看板表单页提示信息正确 +- 计划开始时间为空,创建失败 + - 最终测试状态 @SUCCESS + - 测试结果 @创建看板表单页提示信息正确 +- 计划结束时间为空,创建失败 + - 最终测试状态 @SUCCESS + - 测试结果 @创建看板表单页提示信息正确 +- 不同项目下同名看板、代号,创建成功 + - 最终测试状态 @SUCCESS + - 测试结果 @创建看板成功 +- 看板名称重复,创建失败 + - 最终测试状态 @SUCCESS + - 测试结果 @创建看板表单页提示信息正确 +- 看板代号重复,创建失败 + - 最终测试状态 @SUCCESS + - 测试结果 @创建看板表单页提示信息正确 +- 看板的计划开始时间早于项目的计划开始时间,创建失败 + - 最终测试状态 @SUCCESS + - 测试结果 @创建看板表单页提示信息正确 +- 看板的计划结束时间晚于项目的计划结束时间,创建失败 + - 最终测试状态 @SUCCESS + - 测试结果 @创建看板表单页提示信息正确 + */ chdir(__DIR__); @@ -46,13 +78,6 @@ $projectProduct->branch->range('0'); $projectProduct->plan->range('0'); $projectProduct->gen(2); -zenData('branch')->gen(0); -zenData('design')->gen(0); -zenData('story')->gen(0); -zenData('action')->gen(0); -zenData('actionrecent')->gen(0); -zenData('history')->gen(0); - $tester = new createExecutionTester(); $tester->login();