fix(测试跟踪): 修复导入的JMX文件失败重试不生效问题
--bug=1015060 --user=赵勇 【测试跟踪】测试计划-执行测试计划时选失败重试和失败停止-其中jmx文件导入的场景未执行“失败重试” https://www.tapd.cn/55049933/s/1205254
This commit is contained in:
parent
be534a95a4
commit
cefdbffb4b
|
@ -141,8 +141,9 @@ public class ApiCaseSerialService {
|
|||
group.setLabel(caseWithBLOBs.getName());
|
||||
group.setName(runRequest.getReportId());
|
||||
group.setProjectId(caseWithBLOBs.getProjectId());
|
||||
MsTestElement testElement = null;
|
||||
if (runRequest.isRetryEnable() && runRequest.getRetryNum() > 0) {
|
||||
MsTestElement testElement = parse(data, testId, envId, caseWithBLOBs.getProjectId());
|
||||
// 暂时保留用例的重试功能
|
||||
/*if (runRequest.isRetryEnable() && runRequest.getRetryNum() > 0) {
|
||||
// 失败重试
|
||||
ApiRetryOnFailureService apiRetryOnFailureService = CommonBeanFactory.getBean(ApiRetryOnFailureService.class);
|
||||
String retryData = apiRetryOnFailureService.retry(data, runRequest.getRetryNum(), true);
|
||||
|
@ -155,7 +156,8 @@ public class ApiCaseSerialService {
|
|||
}});
|
||||
} else {
|
||||
testElement = parse(data, testId, envId, caseWithBLOBs.getProjectId());
|
||||
}
|
||||
}*/
|
||||
|
||||
group.setHashTree(new LinkedList<>());
|
||||
group.getHashTree().add(testElement);
|
||||
testPlan.getHashTree().add(group);
|
||||
|
|
Loading…
Reference in New Issue