* Refactor the batch run view, finish task #96872.

This commit is contained in:
daitingting
2023-07-06 09:20:36 +00:00
parent 702f522eb7
commit b62b420c94
7 changed files with 282 additions and 1 deletions
+4 -1
View File
@@ -1321,12 +1321,15 @@ class testtask extends control
if($this->post->results)
{
$this->testtask->batchRun($from, $taskID);
$this->loadModel('action');
foreach(array_keys($this->post->results) as $caseID) $this->action->create('case', $caseID, 'run', '', $taskID);
return print(js::locate($url, 'parent'));
return $this->send(array('result' => 'success', 'load' => $url));
}
if(!$this->post->caseIdList) return print(js::locate($url, 'parent'));
$caseIdList = array_unique($this->post->caseIdList);
/* The case of tasks of qa. */