fix(接口测试): 接口执行上传body文件,执行报错

This commit is contained in:
AgAngle 2024-03-22 11:36:48 +08:00 committed by Craftsman
parent 96b0df3330
commit a01f87d35d
3 changed files with 6 additions and 1 deletions

View File

@ -30,6 +30,10 @@ public class ApiExecuteFileInfo implements Serializable {
* 资源ID
*/
private String resourceId;
/**
* 资源类型
*/
private String resourceType;
/**
* git文件的版本信息

View File

@ -353,6 +353,7 @@ public class ApiExecuteService {
ApiExecuteFileInfo apiExecuteFileInfo = getApiExecuteFileInfo(file.getFileId(), file.getFileName(), file.getProjectId());
// 本地上传的文件需要 resourceId 查询对应的目录
apiExecuteFileInfo.setResourceId(file.getResourceId());
apiExecuteFileInfo.setResourceType(file.getResourceType());
return apiExecuteFileInfo;
})
.collect(Collectors.toList());

View File

@ -1134,7 +1134,7 @@ public class ApiScenarioService extends MoveNodeService {
parseConfig.setReportId(reportId);
// 初始化报告
initApiReport(apiScenario, reportId, parseParam.getEnvironmentId(), poolId, userId);
initApiReport(apiScenario, parseParam.getEnvironmentId(), reportId, poolId, userId);
// 初始化报告步骤
initScenarioReportSteps(steps, taskRequest.getReportId());