* [task#129848,done,1.5h] Add function.

This commit is contained in:
yulujie
2024-10-10 14:45:18 +08:00
committed by 李阳
parent 04be0f877a
commit aa1bb5a47a
3 changed files with 23 additions and 3 deletions
@@ -3,8 +3,8 @@ include dirname(__FILE__, 5) . '/test/lib/ui.php';
class testtaskTester extends tester
{
/**
* 检查统计数据
* Check statistics
* 检查统计数据。
* Check statistics.
*
* @param bool $select
* @param array $nums
@@ -24,4 +24,22 @@ class testtaskTester extends tester
if($form->dom->done->getText() != $nums[4]) return $this->failed('已测试的测试单数据统计错误');
return $this->success('测试单统计数据正确');
}
/**
* 不同产品的测试单生成测试报告。
* Create report for different products.
*
* @access public
* @return void
*/
public function createReport()
{
$form = $this->initForm('execution', 'testtask', array('execution' => '2' ), 'appIframe-execution');
$form->dom->totalCheckbox->click();
$form->dom->report->click();
$form->wait(1);
if($form->dom->modalInfo->getText() == $this->lang->testreport->moreProduct) return $this->success('不同产品的测试单生成测试报告提示正确');
return $this->failed('不同产品的测试单生成测试报告提示错误');
}
}