* [task#126383,doing,2h] Add the tutorial of manage test.
This commit is contained in:
@@ -1450,6 +1450,8 @@ class testtaskModel extends model
|
||||
*/
|
||||
public function getResults(int $runID, int $caseID = 0, string $status = 'all', string $type = 'all', int $deployID = 0): array
|
||||
{
|
||||
if(common::isTutorialMode()) return $this->loadModel('tutorial')->getResults();
|
||||
|
||||
$results = $this->dao->select('*')->from(TABLE_TESTRESULT)
|
||||
->beginIF($runID > 0)->where('run')->eq($runID)->fi()
|
||||
->beginIF($runID <= 0)->where('`case`')->eq($caseID)->fi()
|
||||
|
||||
@@ -488,6 +488,8 @@ class testtaskZen extends testtask
|
||||
*/
|
||||
protected function getProducts(): array
|
||||
{
|
||||
if(commonModel::isTutorialMode()) return $this->loadModel('tutorial')->getProductPairs();
|
||||
|
||||
/* 如果是在非弹窗页面的项目或执行应用下打开的测试单,则获取当前项目或执行对应的产品。*/
|
||||
/* If the testtask is opened under a project or execution application on a non-pop-up page, get the current project or execution corresponding product. */
|
||||
$tab = $this->app->tab;
|
||||
|
||||
Reference in New Issue
Block a user