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 510205a43f
commit 53f7d9c68a
1 changed files with 1 additions and 0 deletions

View File

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