Merge branch release/21.7.3 of zentao/zentaopms (#10190)
This commit is contained in:
@@ -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]))
|
||||
|
||||
@@ -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('编辑后计划完成时间错误');
|
||||
|
||||
@@ -6,6 +6,41 @@
|
||||
title=编辑执行
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
- 编辑执行成功
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行成功
|
||||
- 编辑看板成功
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行成功
|
||||
- 执行名称为空,编辑失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行表单页提示信息正确
|
||||
- 计划开始时间为空,编辑失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行表单页提示信息正确
|
||||
- 计划结束时间为空,编辑失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行表单页提示信息正确
|
||||
- 不同项目下同名执行,编辑成功
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行成功
|
||||
- 执行名称重复,编辑失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行表单页提示信息正确
|
||||
- 看板名称重复,编辑失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行表单页提示信息正确
|
||||
- 执行的计划开始时间早于项目的计划开始时间,编辑失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行表单页提示信息正确
|
||||
- 执行的计划结束时间晚于项目的计划结束时间,编辑失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行表单页提示信息正确
|
||||
- 编辑执行产品成功
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @编辑执行成功
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
|
||||
Reference in New Issue
Block a user