* testtask: rename the processRowspanOfCases method to processRowspanForGroupCase and refactor it.

This commit is contained in:
liugang
2023-09-25 09:55:41 +08:00
parent 795c8c0a9e
commit cca08c5c0b
2 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -480,10 +480,11 @@ class testtask extends control
$groupBy = $groupBy ?: 'story';
$cases = $this->testtask->getRuns($taskID, 0, $groupBy);
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'testcase', false);
$cases = $this->loadModel('testcase')->appendData($cases, 'run');
/* 处理测试用例的跨行合并属性供前端组件分组使用。*/
/* Process the rowspan property of cases for use by front-end component groupings. */
$cases = $this->testtaskZen->processRowspanOfCases($cases, $task->build);
$cases = $this->testtaskZen->processRowspanForGroupCase($cases, $task->build);
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testtask->cases;
$this->view->users = $this->loadModel('user')->getPairs('noletter');