fix(接口测试): 修复接口自动化场景批量转性能测试提示环境未配置的问题

--bug=1016636 --user=宋天阳 【接口测试】github#17761,接口自动化-场景批量转性能测试提示环境未配置
https://www.tapd.cn/55049933/s/1244309
This commit is contained in:
song-tianyang 2022-09-17 13:52:48 +08:00 committed by f2c-ci-robot[bot]
parent 962c38bcc1
commit d359bbf66f
1 changed files with 1 additions and 0 deletions

View File

@ -1752,6 +1752,7 @@ public class ApiAutomationService {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
for (ApiScenarioWithBLOBs apiScenarioWithBLOBs : scenarios) { for (ApiScenarioWithBLOBs apiScenarioWithBLOBs : scenarios) {
try { try {
apiScenarioEnvService.setScenarioEnv(apiScenarioWithBLOBs, null);
boolean haveEnv = apiScenarioEnvService.checkScenarioEnv(apiScenarioWithBLOBs, null); boolean haveEnv = apiScenarioEnvService.checkScenarioEnv(apiScenarioWithBLOBs, null);
if (!haveEnv) { if (!haveEnv) {
builder.append(apiScenarioWithBLOBs.getName()).append("; "); builder.append(apiScenarioWithBLOBs.getName()).append("; ");