fix: 测试计划没有场景用例选择环境执行报错
This commit is contained in:
parent
922ba2b57c
commit
219f375fe1
|
@ -214,6 +214,7 @@ public class TestPlanScenarioCaseService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setScenarioEnv(List<String> planScenarioIds, RunModeConfigDTO runModeConfig) {
|
public void setScenarioEnv(List<String> planScenarioIds, RunModeConfigDTO runModeConfig) {
|
||||||
|
if (CollectionUtils.isEmpty(planScenarioIds)) return;
|
||||||
SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH);
|
SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH);
|
||||||
TestPlanApiScenarioExample testPlanApiScenarioExample = new TestPlanApiScenarioExample();
|
TestPlanApiScenarioExample testPlanApiScenarioExample = new TestPlanApiScenarioExample();
|
||||||
testPlanApiScenarioExample.createCriteria().andIdIn(planScenarioIds);
|
testPlanApiScenarioExample.createCriteria().andIdIn(planScenarioIds);
|
||||||
|
|
Loading…
Reference in New Issue