fix(接口测试): 引用场景num丢失问题修复

This commit is contained in:
fit2-zhao 2022-01-21 10:52:00 +08:00 committed by fit2-zhao
parent 2c83a76db4
commit 637a179f17
1 changed files with 2 additions and 0 deletions

View File

@ -669,6 +669,7 @@ public class ApiAutomationService {
element = JSON.parseObject(scenarioWithBLOBs.getScenarioDefinition());
element.put("referenced", "REF");
}
element.put("id", scenarioWithBLOBs.getId());
element.put("num", scenarioWithBLOBs.getNum());
element.put("enable", enable);
element.put("environmentEnable", environmentEnable);
@ -697,6 +698,7 @@ public class ApiAutomationService {
element = JSON.parseObject(scenarioWithBLOBs.getScenarioDefinition());
element.put("referenced", "REF");
}
element.put("id", scenarioWithBLOBs.getId());
element.put("enable", enable);
element.put("environmentEnable", environmentEnable);
element.put("num", scenarioWithBLOBs.getNum());