[task#132159, 1h] add change epic uitest function and steps.
This commit is contained in:
@@ -61,4 +61,14 @@ class changeStoryTester extends tester
|
||||
{
|
||||
if($form->dom->alertmodal('text') == '『业务需求名称』不能为空。') return $this->success('变更需求表单页面提示信息正确');
|
||||
return $this->failed('变更需求表单页面提示信息不正确');
|
||||
}
|
||||
|
||||
/* 跳转到需求列表页面搜索创建需求并进入该需求详情页。 */
|
||||
|
||||
$viewPage = $this->loadPage('epic', 'view');
|
||||
if($viewPage->dom->storyName->getText() != $storyName) return $this->failed('需求名称不正确');
|
||||
if($viewPage->dom->status->getText() != '评审中') return $this->failed('需求状态不正确');
|
||||
|
||||
return $this->success('变更需求成功');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
/**
|
||||
|
||||
title=变更研发需求测试
|
||||
title=变更需求测试
|
||||
timeout=0
|
||||
cid=80
|
||||
|
||||
@@ -51,6 +51,9 @@ $storyspec->version->range('1');
|
||||
$storyspec->title->range('激活研发需求,激活用户需求,激活业务需求');
|
||||
$storyspec->gen(3);
|
||||
|
||||
$storyreview = zenData('storyreview');
|
||||
$storyreview->gen(0);
|
||||
|
||||
$action = zenData('action');
|
||||
$action->id->range('1-4');
|
||||
$action->objectType->range('product,story,story,story');
|
||||
@@ -74,4 +77,7 @@ $storys['default'] = '变更后需求';
|
||||
r($tester->changeStory($storys['null'])) && p('message,status') && e('变更需求表单页面提示信息正确,SUCCESS'); // 缺少需求名称,变更失败
|
||||
r($tester->changeStory($storys['default'])) && p('message,status') && e('变更需求成功,SUCCESS'); // 使用默认选项变更需求,详情页信息对应
|
||||
|
||||
r($tester->changeEpic($storys['null'])) && p('message,status') && e('变更需求表单页面提示信息正确,SUCCESS'); // 缺少需求名称,变更失败
|
||||
r($tester->changeEpic($storys['default'])) && p('message,status') && e('变更需求成功,SUCCESS'); // 使用默认选项变更需求,详情页信息对应
|
||||
|
||||
$tester->closeBrowser();
|
||||
|
||||
Reference in New Issue
Block a user