fix(接口测试): 修复批量执行场景时CSV文件丢失处理
--bug=1013783 --user=赵勇 【接口测试】带csv的场景,删除服务器上的csv文件,并行执行,会一直running https://www.tapd.cn/55049933/s/1172922
This commit is contained in:
parent
a3e81481af
commit
132eca4304
|
@ -142,16 +142,15 @@ public class GenerateHashTreeUtil {
|
|||
|
||||
group.setHashTree(scenarios);
|
||||
testPlan.getHashTree().add(group);
|
||||
|
||||
ParameterConfig config = new ParameterConfig();
|
||||
config.setScenarioId(item.getId());
|
||||
config.setReportType(runRequest.getReportType());
|
||||
testPlan.toHashTree(jmeterHashTree, testPlan.getHashTree(), config);
|
||||
LoggerUtil.info("报告ID" + runRequest.getReportId() + " 场景资源:" + item.getName() + ", 生成执行脚本JMX成功");
|
||||
} catch (Exception ex) {
|
||||
remakeException(runRequest);
|
||||
LoggerUtil.error("报告ID" + runRequest.getReportId() + " 场景资源:" + item.getName() + ", 生成执行脚本失败", ex);
|
||||
}
|
||||
ParameterConfig config = new ParameterConfig();
|
||||
config.setScenarioId(item.getId());
|
||||
config.setReportType(runRequest.getReportType());
|
||||
testPlan.toHashTree(jmeterHashTree, testPlan.getHashTree(), config);
|
||||
return jmeterHashTree;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue