* Fix bug #45916, add tips to ignore unconfirmed testcases.

This commit is contained in:
liumengyi
2024-02-23 14:47:19 +08:00
parent 634e12dcf1
commit e292ba05c9
6 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -918,7 +918,7 @@ class testtask extends control
/* Get cases to run according to different situations. */
$caseIdList = array_unique($this->post->caseIdList);
$cases = $this->testtaskZen->prepareCasesForBatchRun($productID, $orderBy, $from, $taskID, $confirm, $caseIdList);
if(empty($cases)) return $this->send(array('result' => 'fail', 'load' => $url));
if(empty($cases)) return $this->send(array('result' => 'fail', 'load' => array('alert' => $this->lang->testtask->skipChangedCases, 'locate' => $url)));
/* 获取用例所属模块的键值对。*/
/* Get key-value pairs of case module. */
@@ -930,6 +930,7 @@ class testtask extends control
$this->view->steps = $this->loadModel('testcase')->getStepGroupByIdList($caseIdList);
$this->view->modules = $modules;
$this->view->cases = $cases;
$this->view->caseIdList = $caseIdList;
$this->view->productID = $productID;
$this->view->from = $from;
$this->display();