Merge branch ztflow-yulujie-release/21.7.4#yulujie of zentao/zentaopms (#10546)

This commit is contained in:
李阳
2025-07-23 17:27:01 +08:00
committed by Gitfox
2 changed files with 18 additions and 0 deletions
@@ -14,7 +14,9 @@ class reportTester extends tester
public function check($report, $data)
{
$form = $this->initForm('testtask', 'report', array('productID' => '1', 'taskID' => '1', 'browseType' => 'all', 'chartType' => 'pie'), 'appIframe-qa');
$form->wait(2);
$form->dom->$report->click();
$form->wait(1);
$form->dom->createBtn->click();
$form->wait(1);
/* 获取报表中条目数 */
@@ -24,6 +26,7 @@ class reportTester extends tester
foreach($types as $type)
{
$form->dom->$type->click();
$form->wait(1);
for($num =2; $num <= $itemNum; $num++)
{
$message = $this->checkReport($report, $type, $num, $data);
+15
View File
@@ -2,9 +2,24 @@
<?php
/**
title=测试单报表
timeout=0
cid=1
- 执行tester模块的check方法,参数是'testTaskPerRunResult', $testTaskPerRunResult▫
- 最终测试状态 @SUCCESS
- 测试结果 @testTaskPerRunResult报表数据正确
- 执行tester模块的check方法,参数是'testTaskPerType', $testTaskPerType▫
- 最终测试状态 @SUCCESS
- 测试结果 @testTaskPerType报表数据正确
- 执行tester模块的check方法,参数是'testTaskPerModule', $testTaskPerModule▫
- 最终测试状态 @SUCCESS
- 测试结果 @testTaskPerModule报表数据正确
- 执行tester模块的check方法,参数是'testTaskPerRunner', $testTaskPerRunner▫
- 最终测试状态 @SUCCESS
- 测试结果 @testTaskPerRunner报表数据正确
*/
chdir(__DIR__);