* testtask: rename the method to init a record for filling back the test result after the automated test is completed.
This commit is contained in:
@@ -1165,7 +1165,8 @@ class testtaskModel extends model
|
||||
}
|
||||
|
||||
/**
|
||||
* Init testtask result.
|
||||
* 初始化一条记录便于自动化测试完成后回填测试结果。
|
||||
* Init a record for filling back the test result after the automated test is completed.
|
||||
*
|
||||
* @param int $runID
|
||||
* @param int $caseID
|
||||
@@ -1174,7 +1175,7 @@ class testtaskModel extends model
|
||||
* @access public
|
||||
* @return int|false
|
||||
*/
|
||||
public function createResultForAutomatedTest(int $runID = 0, int $caseID = 0, int $version = 0, int $nodeID = 0): int|false
|
||||
public function initResultForAutomatedTest(int $runID = 0, int $caseID = 0, int $version = 0, int $nodeID = 0): int|false
|
||||
{
|
||||
$result = new stdClass();
|
||||
$result->run = $runID;
|
||||
|
||||
@@ -590,7 +590,7 @@ class testtaskZen extends testtask
|
||||
/* Perform automated testing related operations after user confirmation. */
|
||||
if($confirm == 'yes')
|
||||
{
|
||||
$resultID = $this->testtask->createResultForAutomatedTest($runID, $caseID, $run->case->version, $automation->node);
|
||||
$resultID = $this->testtask->initResultForAutomatedTest($runID, $caseID, $run->case->version, $automation->node);
|
||||
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError(), 'load' => $this->createLink('zanode', 'browse')));
|
||||
|
||||
$this->zanode->runZTFScript($automation->id, $caseID, $resultID);
|
||||
|
||||
Reference in New Issue
Block a user