refactor: 解决性能测试定时任务状态不改变的问题

解决性能测试定时任务状态不改变的问题
This commit is contained in:
song.tianyang 2021-03-25 15:21:53 +08:00
parent f721b21924
commit 38f994c3df
1 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,53 @@
package io.metersphere.track.request.report;
import lombok.Getter;
import lombok.Setter;
/**
* @author song.tianyang
* @Date 2021/1/8 4:36 下午
* @Description
*/
@Getter
@Setter
public class TestPlanReportSaveRequest {
private String reportID;
private String planId;
private String userId;
private String triggerMode;
private boolean countResources;
private boolean apiCaseIsExecuting;
private boolean scenarioIsExecuting;
private boolean performanceIsExecuting;
private String apiCaseIdListJSON;
private String scenarioIdListJSON;
private String performanceIdListJSON;
public TestPlanReportSaveRequest(String reportID, String planId, String userId, String triggerMode) {
this.reportID = reportID;
this.planId = planId;
this.userId = userId;
this.triggerMode = triggerMode;
this.countResources = true;
}
public TestPlanReportSaveRequest(String reportID, String planId, String userId, String triggerMode, boolean apiCaseIsExecuting, boolean scenarioIsExecuting, boolean performanceIsExecuting, String apiCaseIdListJSON, String scenarioIdListJSON, String performanceIdListJSON) {
this.reportID = reportID;
this.planId = planId;
this.userId = userId;
this.triggerMode = triggerMode;
this.countResources = false;
this.apiCaseIsExecuting = apiCaseIsExecuting;
this.scenarioIsExecuting = scenarioIsExecuting;
this.performanceIsExecuting = performanceIsExecuting;
this.apiCaseIdListJSON = apiCaseIdListJSON;
this.scenarioIdListJSON = scenarioIdListJSON;
this.performanceIdListJSON = performanceIdListJSON;
}
}