fix(测试计划): 执行用例已被取消点击报错
--bug=1045364 --user=王旭 【测试计划】执行功能用例-用例已被取消-点击报错 https://www.tapd.cn/55049933/s/1565276
This commit is contained in:
parent
b006a07959
commit
25e61b14a6
|
@ -723,6 +723,9 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService {
|
||||||
|
|
||||||
public TestPlanCaseDetailResponse getFunctionalCaseDetail(String id, String userId) {
|
public TestPlanCaseDetailResponse getFunctionalCaseDetail(String id, String userId) {
|
||||||
TestPlanFunctionalCase planFunctionalCase = testPlanFunctionalCaseMapper.selectByPrimaryKey(id);
|
TestPlanFunctionalCase planFunctionalCase = testPlanFunctionalCaseMapper.selectByPrimaryKey(id);
|
||||||
|
if(planFunctionalCase == null){
|
||||||
|
throw new MSException(Translator.get("resource_not_exist"));
|
||||||
|
}
|
||||||
String caseId = planFunctionalCase.getFunctionalCaseId();
|
String caseId = planFunctionalCase.getFunctionalCaseId();
|
||||||
FunctionalCaseDetailDTO functionalCaseDetail = functionalCaseService.getFunctionalCaseDetail(caseId, userId, false);
|
FunctionalCaseDetailDTO functionalCaseDetail = functionalCaseService.getFunctionalCaseDetail(caseId, userId, false);
|
||||||
String caseDetailSteps = functionalCaseDetail.getSteps();
|
String caseDetailSteps = functionalCaseDetail.getSteps();
|
||||||
|
|
|
@ -433,6 +433,7 @@
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
loadCaseList();
|
||||||
} finally {
|
} finally {
|
||||||
caseDetailLoading.value = false;
|
caseDetailLoading.value = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue