* Finish task #47483.
This commit is contained in:
@@ -1592,7 +1592,7 @@ class testtaskModel extends model
|
||||
if(empty($file))
|
||||
{
|
||||
dao::$errors[] = $this->lang->testtask->unitXMLFormat;
|
||||
die(js::error(dao::getError()));
|
||||
return print(js::error(dao::getError()));
|
||||
}
|
||||
|
||||
$file = $file[0];
|
||||
@@ -1601,7 +1601,7 @@ class testtaskModel extends model
|
||||
if(simplexml_load_file($fileName) === false)
|
||||
{
|
||||
dao::$errors[] = $this->lang->testtask->cannotBeParsed;
|
||||
die(js::error(dao::getError()));
|
||||
return print(js::error(dao::getError()));
|
||||
}
|
||||
|
||||
$frame = $this->post->frame;
|
||||
@@ -1637,7 +1637,7 @@ class testtaskModel extends model
|
||||
*/
|
||||
public function processAutoResult($testtaskID, $productID, $suites, $cases, $results, $suiteNames = array(), $caseTitles = array(), $auto = 'unit')
|
||||
{
|
||||
if(empty($cases)) die(js::alert($this->lang->testtask->noImportData));
|
||||
if(empty($cases)) return print(js::alert($this->lang->testtask->noImportData));
|
||||
|
||||
/* Import cases and link task and insert result. */
|
||||
$this->loadModel('action');
|
||||
|
||||
Reference in New Issue
Block a user