fix(测试计划状态): 优化测试计划的执行状态检查
优化测试计划的执行状态检查,如果测试计划中包含性能测试,那么不再提前结束任务,以性能测试最终结束时间或测试计划超时时间为准
This commit is contained in:
parent
64ca006ed1
commit
97ea6bae07
|
@ -1222,22 +1222,10 @@ public class TestPlanReportService {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StringUtils.isNotBlank(testPlanReportContent.getLoadAllCases())) {
|
if (StringUtils.isNotBlank(testPlanReportContent.getLoadAllCases())) {
|
||||||
reportHasData = true;
|
|
||||||
List<TestPlanLoadCaseDTO> allCases = JSONObject.parseArray(testPlanReportContent.getLoadAllCases(), TestPlanLoadCaseDTO.class);
|
List<TestPlanLoadCaseDTO> allCases = JSONObject.parseArray(testPlanReportContent.getLoadAllCases(), TestPlanLoadCaseDTO.class);
|
||||||
for (TestPlanLoadCaseDTO dto : allCases) {
|
if(!allCases.isEmpty()){
|
||||||
if (StringUtils.equalsIgnoreCase(dto.getStatus(), "run")) {
|
isTaskRunning = true;
|
||||||
isUpdate = true;
|
|
||||||
LoadTestReport report = loadTestReportMapper.selectByPrimaryKey(dto.getReportId());
|
|
||||||
if (report != null) {
|
|
||||||
dto.setStatus(report.getStatus());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (StringUtils.equalsAnyIgnoreCase("Underway", dto.getStatus(), dto.getStatus())) {
|
|
||||||
isTaskRunning = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
testPlanReportContent.setLoadAllCases(JSONArray.toJSONString(allCases));
|
|
||||||
}
|
}
|
||||||
if (isUpdate) {
|
if (isUpdate) {
|
||||||
testPlanReportContentMapper.updateByPrimaryKeyWithBLOBs(testPlanReportContent);
|
testPlanReportContentMapper.updateByPrimaryKeyWithBLOBs(testPlanReportContent);
|
||||||
|
|
Loading…
Reference in New Issue