Merge branch release/21.7.3 of zentao/zentaopms (#10394)
This commit is contained in:
@@ -14,7 +14,7 @@ class bugTester extends tester
|
||||
public function checkTab($tab, $expectNum)
|
||||
{
|
||||
$form = $this->initForm('execution', 'bug', array('execution' => '2'), 'appIframe-execution');
|
||||
$form->wait(1);
|
||||
$form->wait(3);
|
||||
$form->dom->$tab->click();
|
||||
$form->wait(1);
|
||||
if($form->dom->num->getText() == $expectNum) return $this->success($tab . '下显示条数正确');
|
||||
@@ -32,7 +32,9 @@ class bugTester extends tester
|
||||
public function assignTo($user)
|
||||
{
|
||||
$form = $this->initForm('execution', 'bug', array('execution' => '2'), 'appIframe-execution');
|
||||
$form->wait(3);
|
||||
$form->dom->firstAssignedTo->click();
|
||||
$form->wait(1);
|
||||
$form->dom->assignedTo->picker($user);
|
||||
$form->dom->submitBtn->click();
|
||||
$form->wait(1);
|
||||
@@ -52,7 +54,9 @@ class bugTester extends tester
|
||||
public function batchAssignTo()
|
||||
{
|
||||
$form = $this->initForm('execution', 'bug', array('execution' => '2'), 'appIframe-execution');
|
||||
$form->wait(3);
|
||||
$form->dom->firstCheckbox->click();
|
||||
$form->wait(1);
|
||||
$form->dom->batchAssignBtn->click();
|
||||
$form->wait(1);
|
||||
$form->dom->assignToAdmin->click();
|
||||
@@ -75,7 +79,9 @@ class bugTester extends tester
|
||||
public function switchProduct($product, $expectNum)
|
||||
{
|
||||
$form = $this->initForm('execution', 'bug', array('execution' => '2'), 'appIframe-execution');
|
||||
$form->wait(3);
|
||||
$form->dom->productNav->click();
|
||||
$form->wait(1);
|
||||
$form->dom->$product->click();
|
||||
$form->wait(1);
|
||||
|
||||
|
||||
@@ -12,8 +12,9 @@ class editExecutionTester extends tester
|
||||
public function editFields($execution)
|
||||
{
|
||||
$form = $this->initForm('execution', 'view', array('execution' => $execution['id']), 'appIframe-execution');
|
||||
$form->wait(1);
|
||||
$form->wait(3);
|
||||
$form->dom->editBtn->click();
|
||||
$form->wait(1);
|
||||
$form = $this->loadPage();
|
||||
$form->wait(1);
|
||||
if(isset($execution['name'])) $form->dom->name->setValue($execution['name']);
|
||||
@@ -97,6 +98,7 @@ class editExecutionTester extends tester
|
||||
public function checkManageProductsInfo()
|
||||
{
|
||||
$form = $this->loadPage();
|
||||
$form->wait(1);
|
||||
$form->dom->waitElement($form->dom->xpath['productsTip'], 10);
|
||||
$text = $form->dom->productsTip->getText();
|
||||
$info = $this->lang->project->errorNoProducts;
|
||||
|
||||
@@ -2,9 +2,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
||||
title=激活执行
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
- 计划完成日期为空,激活失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @激活执行表单页提示信息正确
|
||||
- 计划完成日期小于计划开始日期,激活失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @激活执行表单页提示信息正确
|
||||
- 计划完成日期大于项目的计划完成日期,激活失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @激活执行表单页提示信息正确
|
||||
- 成功激活挂起的执行
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @激活执行成功
|
||||
- 成功激活已关闭的执行
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @激活执行成功
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
|
||||
@@ -2,10 +2,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
||||
title=执行下bug列表操作检查
|
||||
timeout=0
|
||||
cid=1
|
||||
*/
|
||||
|
||||
- 执行tester模块的checkTab方法,参数是'allTab', '18'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @allTab下显示条数正确
|
||||
- 执行tester模块的checkTab方法,参数是'unresolvedTab', '4'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @unresolvedTab下显示条数正确
|
||||
- 执行tester模块的assignTo方法,参数是'USER1'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @指派bug成功
|
||||
- 执行tester模块的batchAssignTo方法▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @批量指派bug成功
|
||||
- 执行tester模块的switchProduct方法,参数是'firstProduct', '18'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @切换产品查看bug成功
|
||||
- 执行tester模块的switchProduct方法,参数是'secondProduct', '9'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @切换产品查看bug成功
|
||||
- 执行tester模块的switchProduct方法,参数是'thirdProduct', '9'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @切换产品查看bug成功
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
include '../lib/bug.ui.class.php';
|
||||
|
||||
@@ -6,7 +6,42 @@
|
||||
title=创建执行
|
||||
timeout=0
|
||||
cid=1
|
||||
*/
|
||||
|
||||
- 创建执行成功
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行成功
|
||||
- 创建看板成功
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行成功
|
||||
- 执行名称为空,创建失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行表单页提示信息正确
|
||||
- 计划开始时间为空,创建失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行表单页提示信息正确
|
||||
- 计划结束时间为空,创建失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行表单页提示信息正确
|
||||
- 不同项目下同名执行,创建成功
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行成功
|
||||
- 执行名称重复,创建失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行表单页提示信息正确
|
||||
- 看板名称重复,创建失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行表单页提示信息正确
|
||||
- 创建阶段关联产品为空,创建失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行表单页提示信息正确
|
||||
- 执行的计划开始时间早于项目的计划开始时间,创建失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行表单页提示信息正确
|
||||
- 执行的计划结束时间晚于项目的计划结束时间,创建失败
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @创建执行表单页提示信息正确
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
include '../lib/createexecution.ui.class.php';
|
||||
|
||||
@@ -2,10 +2,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
||||
title=执行动态
|
||||
timeout=0
|
||||
cid=1
|
||||
*/
|
||||
|
||||
- 执行tester模块的checkTotalNum方法,参数是'9'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @执行动态数量正确
|
||||
- 执行tester模块的checkNumByUser方法,参数是'USER2', '7'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @按用户筛选动态数据正确
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
include '../lib/dynamic.ui.class.php';
|
||||
|
||||
@@ -2,10 +2,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
||||
title=执行看板
|
||||
timeout=0
|
||||
cid=1
|
||||
*/
|
||||
|
||||
- 执行tester模块的checkNums方法,参数是array▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @执行看板各列数据统计正确
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
include '../lib/executionkanban.ui.class.php';
|
||||
|
||||
@@ -2,10 +2,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
||||
title=执行下的分组视图
|
||||
timeout=0
|
||||
cid=1
|
||||
*/
|
||||
|
||||
- 执行tester模块的checkGroupData方法,参数是'story', $nums['story']▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @数据正确
|
||||
- 执行tester模块的checkGroupData方法,参数是'status', $nums['status']▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @数据正确
|
||||
- 执行tester模块的checkGroupData方法,参数是'pri', $nums['pri']▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @数据正确
|
||||
- 执行tester模块的checkGroupData方法,参数是'assignedTo', $nums['assignedTo']▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @数据正确
|
||||
- 执行tester模块的checkGroupData方法,参数是'finishedBy', $nums['finishedBy']▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @数据正确
|
||||
- 执行tester模块的checkGroupData方法,参数是'closedBy', $nums['closedBy']▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @数据正确
|
||||
- 执行tester模块的checkGroupData方法,参数是'type', $nums['type']▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @数据正确
|
||||
- 执行tester模块的checkTaskLinkedStory方法,参数是$nums['linked']▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @数据正确
|
||||
- 执行tester模块的checkCollapse方法,参数是$nums['collapse']▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @数据正确
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
include '../lib/grouptask.ui.class.php';
|
||||
|
||||
@@ -2,10 +2,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
||||
title=导入Bug
|
||||
timeout=0
|
||||
cid=1
|
||||
*/
|
||||
|
||||
- 执行tester模块的importBug方法,参数是'4', '0'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @可导入的Bug数目正确
|
||||
- 执行tester模块的importBug方法,参数是'3', '2'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @导入Bug成功
|
||||
- 执行tester模块的importBug方法,参数是'2', '3'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @导入Bug成功
|
||||
- 执行tester模块的importBug方法,参数是'2', '2'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @导入Bug成功
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
include '../lib/importbug.ui.class.php';
|
||||
|
||||
@@ -2,10 +2,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
||||
title=导入任务
|
||||
timeout=0
|
||||
cid=1
|
||||
*/
|
||||
|
||||
- 执行tester模块的importTask方法,参数是'项目1 / 已删除执行', '4', '0'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @执行下拉列表执行显示正确
|
||||
- 执行tester模块的importTask方法,参数是'项目1 / 未开始执行2', '4'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @导入任务成功
|
||||
- 执行tester模块的importTask方法,参数是'项目1 / 进行中执行', '4'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @导入任务成功
|
||||
- 执行tester模块的importTask方法,参数是'项目1 / 已挂起执行', '4'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @导入任务成功
|
||||
- 执行tester模块的importTask方法,参数是'项目1 / 已关闭执行', '4', '0'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @执行下拉列表执行显示正确
|
||||
- 执行tester模块的importTask方法,参数是'项目1 / 无任务执行', '4', '0'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @执行下拉列表执行显示正确
|
||||
- 执行tester模块的importTask方法,参数是'项目2 / 项目2执行', '4', '0'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @执行下拉列表执行显示正确
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
include '../lib/importtask.ui.class.php';
|
||||
|
||||
@@ -2,10 +2,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
||||
title=执行下用例
|
||||
timeout=0
|
||||
cid=1
|
||||
*/
|
||||
|
||||
- 执行tester模块的switchProduct方法,参数是'firstProduct', '9'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @切换产品查看用例成功
|
||||
- 执行tester模块的switchProduct方法,参数是'secondProduct', '5'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @切换产品查看用例成功
|
||||
- 执行tester模块的switchProduct方法,参数是'thirdProduct', '4'▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @切换产品查看用例成功
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
include '../lib/testcase.ui.class.php';
|
||||
|
||||
@@ -2,10 +2,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
||||
title=执行下测试单
|
||||
timeout=0
|
||||
cid=1
|
||||
*/
|
||||
|
||||
- 执行tester模块的checkNum方法,参数是false, array▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @测试单统计数据正确
|
||||
- 执行tester模块的checkNum方法,参数是true, array▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @测试单统计数据正确
|
||||
- 执行tester模块的createReport方法▫
|
||||
- 最终测试状态 @SUCCESS
|
||||
- 测试结果 @不同产品的测试单生成测试报告提示正确
|
||||
|
||||
*/
|
||||
|
||||
chdir(__DIR__);
|
||||
include '../lib/testtask.ui.class.php';
|
||||
|
||||
Reference in New Issue
Block a user