Merge branch 'master' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
d1b32083da
|
@ -27,6 +27,7 @@ import io.metersphere.commons.exception.MSException;
|
||||||
import io.metersphere.commons.utils.*;
|
import io.metersphere.commons.utils.*;
|
||||||
import io.metersphere.i18n.Translator;
|
import io.metersphere.i18n.Translator;
|
||||||
import io.metersphere.job.sechedule.ApiScenarioTestJob;
|
import io.metersphere.job.sechedule.ApiScenarioTestJob;
|
||||||
|
import io.metersphere.job.sechedule.TestPlanTestJob;
|
||||||
import io.metersphere.service.ScheduleService;
|
import io.metersphere.service.ScheduleService;
|
||||||
import io.metersphere.track.dto.TestPlanDTO;
|
import io.metersphere.track.dto.TestPlanDTO;
|
||||||
import io.metersphere.track.request.testcase.ApiCaseRelevanceRequest;
|
import io.metersphere.track.request.testcase.ApiCaseRelevanceRequest;
|
||||||
|
@ -630,8 +631,14 @@ public class ApiAutomationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addOrUpdateApiScenarioCronJob(Schedule request) {
|
private void addOrUpdateApiScenarioCronJob(Schedule request) {
|
||||||
scheduleService.addOrUpdateCronJob(
|
if(StringUtils.equals(request.getGroup(),ScheduleGroup.TEST_PLAN_TEST.name())){
|
||||||
request, ApiScenarioTestJob.getJobKey(request.getResourceId()), ApiScenarioTestJob.getTriggerKey(request.getResourceId()), ApiScenarioTestJob.class);
|
scheduleService.addOrUpdateCronJob(
|
||||||
|
request, TestPlanTestJob.getJobKey(request.getResourceId()), TestPlanTestJob.getTriggerKey(request.getResourceId()), TestPlanTestJob.class);
|
||||||
|
}else{
|
||||||
|
scheduleService.addOrUpdateCronJob(
|
||||||
|
request, ApiScenarioTestJob.getJobKey(request.getResourceId()), ApiScenarioTestJob.getTriggerKey(request.getResourceId()), ApiScenarioTestJob.class);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public JmxInfoDTO genPerformanceTestJmx(RunScenarioRequest request) throws Exception {
|
public JmxInfoDTO genPerformanceTestJmx(RunScenarioRequest request) throws Exception {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 792ace0c68d2b4ff42a74d8e6df32ca7f290ca1c
|
Subproject commit bb9c0309161c91bf7d0a9f85cc44bc0eb0fc11ac
|
|
@ -1 +1 @@
|
||||||
Subproject commit 416645a24d941eb9727c07c19be70422c2e66cc7
|
Subproject commit 3a3363c7d651f340cc37fca74c1edb92af484915
|
Loading…
Reference in New Issue