mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-01 11:38:57 +08:00
fix(UI 自动化): 修复测试计划导出报告报错
This commit is contained in:
parent
3b3544aa2f
commit
482165ccf7
@ -1604,7 +1604,11 @@ public class TestPlanService {
|
||||
if (resultMap.get(item.getReportId()) != null &&
|
||||
StringUtils.isNotBlank(resultMap.get(item.getReportId()).getContent())) {
|
||||
ApiDefinitionExecResultWithBLOBs execResult = resultMap.get(item.getReportId());
|
||||
JSONObject responseObj = JSONObject.parseObject(execResult.getContent());
|
||||
JSONObject responseObj = new JSONObject();
|
||||
try {
|
||||
responseObj = JSONObject.parseObject(execResult.getContent());
|
||||
} catch (Exception e) {
|
||||
}
|
||||
if (StringUtils.isNotEmpty(execResult.getEnvConfig())) {
|
||||
responseObj.put("envName", apiDefinitionService.getEnvNameByEnvConfig(execResult.getProjectId(), execResult.getEnvConfig()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user