fix(接口测试): 修复测试计划执行失败问题
--bug=1015634 --user=赵勇 【测试跟踪】测试计划定时执行,第一次执行的时候接口执行了一个,然后一直在running,后面的任务里接口就都没执行 https://www.tapd.cn/55049933/s/1227929
This commit is contained in:
parent
b7142292a0
commit
8a96a1f84e
|
@ -992,6 +992,9 @@ public class TestPlanService {
|
|||
Map<String, String> envMap = testPlanRunRequest.getEnvMap();
|
||||
String environmentGroupId = testPlanRunRequest.getEnvironmentGroupId();
|
||||
runModeConfig = getRunModeConfigDTO(testPlanRunRequest, envType, envMap, environmentGroupId, testPlanID);
|
||||
if (!testPlanRunRequest.isRunWithinResourcePool()) {
|
||||
runModeConfig.setResourcePoolId(null);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LogUtil.error("获取测试计划保存的环境信息出错!", e);
|
||||
|
@ -2143,6 +2146,9 @@ public class TestPlanService {
|
|||
String environmentGroupId = testplanRunRequest.getEnvironmentGroupId();
|
||||
String testPlanId = testplanRunRequest.getTestPlanId();
|
||||
RunModeConfigDTO runModeConfig = getRunModeConfigDTO(testplanRunRequest, envType, envMap, environmentGroupId, testPlanId);
|
||||
if (!testplanRunRequest.isRunWithinResourcePool()) {
|
||||
runModeConfig.setResourcePoolId(null);
|
||||
}
|
||||
String apiRunConfig = JSONObject.toJSONString(runModeConfig);
|
||||
return this.run(testPlanId, testplanRunRequest.getProjectId(),
|
||||
testplanRunRequest.getUserId(), testplanRunRequest.getTriggerMode(), testplanRunRequest.getReportId(), apiRunConfig);
|
||||
|
|
Loading…
Reference in New Issue