From 734b9aacbda4d95fb6a39667ec18809ab446b463 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Thu, 26 Dec 2024 08:00:04 +0000 Subject: [PATCH] * [bug#58671,done,0.2h] fix bug. --- module/testtask/control.php | 2 ++ module/testtask/lang/de.php | 1 + module/testtask/lang/en.php | 1 + module/testtask/lang/fr.php | 1 + module/testtask/lang/zh-cn.php | 1 + 5 files changed, 6 insertions(+) diff --git a/module/testtask/control.php b/module/testtask/control.php index a7d8cee319..52778afc77 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -939,6 +939,8 @@ class testtask extends control } } + if(empty($cases)) return $this->send(array('result' => 'fail', 'load' => array('alert' => $this->lang->testtask->caseEmpty, 'locate' => $url))); + /* 获取用例所属模块的键值对。*/ /* Get key-value pairs of case module. */ $this->loadModel('tree'); diff --git a/module/testtask/lang/de.php b/module/testtask/lang/de.php index 1a0a73cf2d..9f38148a80 100644 --- a/module/testtask/lang/de.php +++ b/module/testtask/lang/de.php @@ -121,6 +121,7 @@ $lang->testtask->mySummary = 'Total testtasks: %s, Wait $lang->testtask->allSummary = 'Total testtasks: %s, Wait: %s, Testing: %s, Blocked: %s, Done: %s.'; $lang->testtask->checkedAllSummary = 'Seleted: %total%, Wait: %wait%, Testing: %testing%, Blocked: %blocked%, Done: %done%.'; $lang->testtask->emptyCases = 'Cases %s have no steps, filter to show.'; +$lang->testtask->caseEmpty = 'Selected cases have no steps or do not meet the execution conditions, and have been ignored.'; $lang->testtask->beginAndEnd = 'Datum'; $lang->testtask->to = 'An'; diff --git a/module/testtask/lang/en.php b/module/testtask/lang/en.php index c5e460e19f..6c02372136 100644 --- a/module/testtask/lang/en.php +++ b/module/testtask/lang/en.php @@ -121,6 +121,7 @@ $lang->testtask->mySummary = 'Total testtasks: %s, Wait $lang->testtask->allSummary = 'Total testtasks: %s, Wait: %s, Testing: %s, Blocked: %s, Done: %s.'; $lang->testtask->checkedAllSummary = 'Seleted: %total%, Wait: %wait%, Testing: %testing%, Blocked: %blocked%.'; $lang->testtask->emptyCases = 'Cases %s have no steps, filter to show.'; +$lang->testtask->caseEmpty = 'Selected cases have no steps or do not meet the execution conditions, and have been ignored.'; $lang->testtask->beginAndEnd = 'Duration'; $lang->testtask->to = 'To'; diff --git a/module/testtask/lang/fr.php b/module/testtask/lang/fr.php index c2698a047e..7fb78f0090 100644 --- a/module/testtask/lang/fr.php +++ b/module/testtask/lang/fr.php @@ -121,6 +121,7 @@ $lang->testtask->mySummary = 'Total testtasks: %s, Wait $lang->testtask->allSummary = 'Total testtasks: %s, Wait: %s, Testing: %s, Blocked: %s, Done: %s.'; $lang->testtask->checkedAllSummary = 'Seleted: %total%, Wait: %wait%, Testing: %testing%, Blocked: %blocked%.'; $lang->testtask->emptyCases = 'Cases %s have no steps, filter to show.'; +$lang->testtask->caseEmpty = 'Selected cases have no steps or do not meet the execution conditions, and have been ignored.'; $lang->testtask->beginAndEnd = 'Durée'; $lang->testtask->to = 'à'; diff --git a/module/testtask/lang/zh-cn.php b/module/testtask/lang/zh-cn.php index 535584f0da..659327ce23 100644 --- a/module/testtask/lang/zh-cn.php +++ b/module/testtask/lang/zh-cn.php @@ -121,6 +121,7 @@ $lang->testtask->mySummary = '本页共 %s 个测试单 $lang->testtask->allSummary = '本页共 %s 个测试单,待测试 %s,测试中 %s,被阻塞 %s,已测试 %s。'; $lang->testtask->checkedAllSummary = '共选中 %total% 个测试单,待测试 %wait%,测试中 %testing%,被阻塞 %blocked%,已测试 %done%。'; $lang->testtask->emptyCases = 'ID %s 的用例没有步骤,过滤显示。'; +$lang->testtask->caseEmpty = '选中的用例步骤为空或不符合执行条件,已忽略'; $lang->testtask->beginAndEnd = '起止时间'; $lang->testtask->to = '至';