+ [task#134172,doing,0.2h] add testtask::assignCase.
This commit is contained in:
@@ -1006,6 +1006,29 @@ class testtask extends control
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/**
|
||||
* 指派测试用例。
|
||||
* Assign a testcase.
|
||||
*
|
||||
* @param int $runID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function assignCase(int $runID)
|
||||
{
|
||||
$run = $this->testtask->getRunById($runID);
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
return $this->sendSuccess(array('message' => $message, 'closeModal' => true, 'load' => true));
|
||||
}
|
||||
|
||||
/* Assign. */
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noclosed, noletter');
|
||||
$this->view->run = $run;
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量指派测试单中的用例。
|
||||
* Batch assign cases in a testtask.
|
||||
|
||||
Reference in New Issue
Block a user