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