refactor(场景自动化): 执行场景前环境检查
This commit is contained in:
parent
4f5387bf8b
commit
c2b212f200
|
@ -1010,6 +1010,10 @@ public class ApiAutomationService {
|
|||
Set<String> projectIds = apiScenarioEnv.getProjectIds();
|
||||
if (CollectionUtils.isNotEmpty(envMap.keySet())) {
|
||||
for (String id : projectIds) {
|
||||
Project project = projectMapper.selectByPrimaryKey(id);
|
||||
if (project == null) {
|
||||
id = apiScenarioWithBLOBs.getProjectId();
|
||||
}
|
||||
String s = envMap.get(id);
|
||||
if (StringUtils.isBlank(s)) {
|
||||
isEnv = false;
|
||||
|
|
Loading…
Reference in New Issue