fix(测试计划状态): 优化测试计划的执行状态检查
优化测试计划的执行状态检查,如果测试计划中包含性能测试,那么不再提前结束任务,以性能测试最终结束时间或测试计划超时时间为准
This commit is contained in:
parent
6f553a4809
commit
43f1dc5982
|
@ -1188,22 +1188,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