* [task#126383,doing,2h] Add the tutorial of manage test.

This commit is contained in:
xieqiyu
2024-09-04 17:31:41 +08:00
committed by 王于听
parent e9602bf60a
commit da309d506b
7 changed files with 329 additions and 0 deletions
+2
View File
@@ -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()
+2
View File
@@ -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;