- Delete unuse case.

This commit is contained in:
tianshujie
2023-09-11 17:00:20 +08:00
parent aa199e648d
commit 1125cfc543
2 changed files with 0 additions and 91 deletions
-40
View File
@@ -1247,46 +1247,6 @@ class executionTest
return $this->executionModel->importBug($tasks);
}
/**
* function updateChilds test by execution
*
* @param string $executionID
* @param string $count
* @param array $param
* @access public
* @return array
*/
public function updateChildsTest($executionID, $count, $param = array())
{
global $tester;
$childs = array();
$createFields = array('childs' => $childs);
foreach($createFields as $field => $defaultValue) $_POST[$field] = $defaultValue;
foreach($param as $key => $value) $_POST[$key] = $value;
$object = $this->executionModel->updateChilds($executionID);
unset($_POST);
if(dao::isError())
{
$error = dao::getError();
return $error;
}
elseif($count == "1")
{
$childExecutions = $tester->dbh->query("select id,name,type from zt_project where parent = $executionID")->fetchAll();
return count($childExecutions);
}
else
{
$childExecutions = $tester->dbh->query("select id,name,type from zt_project where parent = $executionID")->fetchAll();
return $childExecutions;
}
}
/**
* 修改执行的所属项目。
* Change execution project.