fix(接口测试): 场景导入时环境取消源文件中的环境id

This commit is contained in:
Jianguo-Genius 2024-11-20 14:40:59 +08:00 committed by 建国
parent 4f50e3a751
commit 6477bca961
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ public class MetersphereParserApiScenario implements ApiScenarioImportParser {
apiScenarioImportDetail.setSteps(parseResult.getStepList());
apiScenarioImportDetail.setStepDetails(parseResult.getStepDetails());
apiScenarioImportDetail.setProjectId(projectId);
apiScenarioImportDetail.setEnvironmentId(null);
apiScenarioImportDetail.setApiScenarioCsvList(apiScenarioCsvMap.getOrDefault(apiScenarioDetail.getId(), new ArrayList<>()));
return apiScenarioImportDetail;
}