*[uitest] Fix bug.

This commit is contained in:
yulujie
2025-07-15 10:03:34 +08:00
parent d5754d40c0
commit be94a85697
3 changed files with 36 additions and 11 deletions
@@ -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();
@@ -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字段内容 */
+32 -7
View File
@@ -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();