refactor(测试跟踪): 修改场景转性能时部分csv文件无法解析的问题

--bug=1034342 --user=宋天阳 【性能测试】github#28363,在接口自动化场景中,有场景变量csv文件,然后把这个自动化转化成性能测试的时候,转化过的性能测试中的高级配置没有csv文件。 https://www.tapd.cn/55049933/s/1452192
This commit is contained in:
song-tianyang 2024-01-17 10:48:11 +08:00 committed by 建国
parent ec75f12d94
commit f234ba6bb4
2 changed files with 6 additions and 2 deletions

View File

@ -1703,7 +1703,11 @@ public class ApiScenarioService {
}
public ScenarioToPerformanceInfoDTO exportJmx(ApiScenarioBatchRequest request) {
List<ApiScenarioWithBLOBs> apiScenarioWithBLOBs = getExportResult(request);
ServiceUtils.getSelectAllIds(request, request.getCondition(), (query) -> extApiScenarioMapper.selectIdsByQuery(query));
ApiScenarioExample example = new ApiScenarioExample();
example.createCriteria().andIdIn(request.getIds());
List<ApiScenarioWithBLOBs> apiScenarioWithBLOBs = apiScenarioMapper.selectByExampleWithBLOBs(example);
//检查运行环境
checkExportEnv(apiScenarioWithBLOBs);
// 生成jmx

View File

@ -679,7 +679,7 @@ export default {
csvHasHeader: true,
recycle: true,
stopThread: false,
shareMode: "shareMode.thread"
shareMode: "shareMode.all"
});
}