fix(接口测试): 接口执行上传body文件,执行报错
This commit is contained in:
parent
96b0df3330
commit
a01f87d35d
|
@ -30,6 +30,10 @@ public class ApiExecuteFileInfo implements Serializable {
|
|||
* 资源ID
|
||||
*/
|
||||
private String resourceId;
|
||||
/**
|
||||
* 资源类型
|
||||
*/
|
||||
private String resourceType;
|
||||
|
||||
/**
|
||||
* git文件的版本信息
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue