update script behavior
This commit is contained in:
parent
e9ffadad75
commit
e26592c7a5
|
@ -9,6 +9,8 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||||
public class BehaviorBriefModel {
|
public class BehaviorBriefModel {
|
||||||
private int behaviorId;
|
private int behaviorId;
|
||||||
private String behaviorUrl;
|
private String behaviorUrl;
|
||||||
|
private long totalCount;
|
||||||
|
private long successfulCount;
|
||||||
private List<BehaviorStatusCodeResultModel> detailStatusCodeResultModels;
|
private List<BehaviorStatusCodeResultModel> detailStatusCodeResultModels;
|
||||||
|
|
||||||
@XmlElement
|
@XmlElement
|
||||||
|
@ -40,4 +42,22 @@ public class BehaviorBriefModel {
|
||||||
this.detailStatusCodeResultModels = detailStatusCodeResultModels;
|
this.detailStatusCodeResultModels = detailStatusCodeResultModels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@XmlElement
|
||||||
|
public long getTotalCount() {
|
||||||
|
return totalCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTotalCount(long totalCount) {
|
||||||
|
this.totalCount = totalCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlElement
|
||||||
|
public long getSuccessfulCount() {
|
||||||
|
return successfulCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuccessfulCount(long successfulCount) {
|
||||||
|
this.successfulCount = successfulCount;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package org.bench4q.share.models.master.plugin;
|
package org.bench4q.share.models.master.plugin;
|
||||||
|
|
||||||
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
import com.sun.xml.internal.txw2.annotation.XmlElement;
|
|
||||||
|
|
||||||
@XmlRootElement
|
@XmlRootElement
|
||||||
public class ParamTypeModel {
|
public class ParamTypeModel {
|
||||||
|
|
|
@ -1,32 +1,24 @@
|
||||||
package org.bench4q.share.models.master.statistics;
|
package org.bench4q.share.models.master.statistics;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import org.bench4q.share.models.agent.BehaviorBriefModel;
|
||||||
import org.bench4q.share.models.agent.statistics.AgentBehaviorsBriefModel;
|
|
||||||
|
|
||||||
@XmlRootElement(name = "scriptBehaviorsBriefModel")
|
@XmlRootElement(name = "scriptBehaviorsBriefModel")
|
||||||
public class ScriptBehaviorsBriefModel extends SampleModel {
|
public class ScriptBehaviorsBriefModel extends SampleModel {
|
||||||
private boolean finished;
|
private List<BehaviorBriefModel> behaviorBriefModels;
|
||||||
private AgentBehaviorsBriefModel testBehaviorsBriefModel;
|
|
||||||
|
|
||||||
@XmlElement
|
@XmlElementWrapper(name = "behaviorBriefList")
|
||||||
public boolean isFinished() {
|
@XmlElement(name = "behaviorBrief")
|
||||||
return finished;
|
public List<BehaviorBriefModel> getBehaviorBriefModels() {
|
||||||
|
return behaviorBriefModels;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFinished(boolean finished) {
|
public void setBehaviorBriefModels(
|
||||||
this.finished = finished;
|
List<BehaviorBriefModel> behaviorBriefModels) {
|
||||||
}
|
this.behaviorBriefModels = behaviorBriefModels;
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
public AgentBehaviorsBriefModel getTestBehaviorsBriefModel() {
|
|
||||||
return testBehaviorsBriefModel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTestBehaviorsBriefModel(
|
|
||||||
AgentBehaviorsBriefModel testBehaviorsBriefModel) {
|
|
||||||
this.testBehaviorsBriefModel = testBehaviorsBriefModel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,6 @@ public class ScriptBriefResultModel extends SampleModel {
|
||||||
private long averageElapsedTime;
|
private long averageElapsedTime;
|
||||||
private long planedRunningTime;
|
private long planedRunningTime;
|
||||||
private long vUserCount;
|
private long vUserCount;
|
||||||
private boolean finished;
|
|
||||||
|
|
||||||
@XmlElement
|
@XmlElement
|
||||||
public long getTotalSuccessCountFromBegin() {
|
public long getTotalSuccessCountFromBegin() {
|
||||||
|
@ -120,14 +119,6 @@ public class ScriptBriefResultModel extends SampleModel {
|
||||||
this.planedRunningTime = planedRunningTime;
|
this.planedRunningTime = planedRunningTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
public boolean isFinished() {
|
|
||||||
return finished;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFinished(boolean finished) {
|
|
||||||
this.finished = finished;
|
|
||||||
}
|
|
||||||
|
|
||||||
@XmlElement
|
@XmlElement
|
||||||
public long getvUserCount() {
|
public long getvUserCount() {
|
||||||
|
|
|
@ -5,7 +5,6 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
@XmlRootElement
|
@XmlRootElement
|
||||||
public class ScriptPageBriefModel extends SampleModel {
|
public class ScriptPageBriefModel extends SampleModel {
|
||||||
private boolean finished;
|
|
||||||
private long countFromBegin;
|
private long countFromBegin;
|
||||||
private long maxResponseTimeFromBegin;
|
private long maxResponseTimeFromBegin;
|
||||||
private long minResponseTimeFromBegin;
|
private long minResponseTimeFromBegin;
|
||||||
|
@ -14,15 +13,6 @@ public class ScriptPageBriefModel extends SampleModel {
|
||||||
private long throughputThisTime;
|
private long throughputThisTime;
|
||||||
public long totalResponseTimeThisTime;
|
public long totalResponseTimeThisTime;
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
public boolean isFinished() {
|
|
||||||
return finished;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFinished(boolean finished) {
|
|
||||||
this.finished = finished;
|
|
||||||
}
|
|
||||||
|
|
||||||
@XmlElement
|
@XmlElement
|
||||||
public long getCountFromBegin() {
|
public long getCountFromBegin() {
|
||||||
return countFromBegin;
|
return countFromBegin;
|
||||||
|
|
|
@ -12,8 +12,8 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||||
public class ScriptPagesBriefModel extends SampleModel {
|
public class ScriptPagesBriefModel extends SampleModel {
|
||||||
private List<ScriptPageBriefModel> scriptPageBriefModels;
|
private List<ScriptPageBriefModel> scriptPageBriefModels;
|
||||||
|
|
||||||
@XmlElementWrapper
|
@XmlElementWrapper(name="pageBriefs")
|
||||||
@XmlElement
|
@XmlElement(name="pageBrief")
|
||||||
public List<ScriptPageBriefModel> getScriptPageBriefModels() {
|
public List<ScriptPageBriefModel> getScriptPageBriefModels() {
|
||||||
return scriptPageBriefModels;
|
return scriptPageBriefModels;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,8 +52,8 @@ public class ScriptResultModel extends SampleModel {
|
||||||
|
|
||||||
private static ScriptPagesBriefModel buildFinishedPages() {
|
private static ScriptPagesBriefModel buildFinishedPages() {
|
||||||
ScriptPagesBriefModel result = new ScriptPagesBriefModel();
|
ScriptPagesBriefModel result = new ScriptPagesBriefModel();
|
||||||
result.setFinished(true);
|
|
||||||
result.setSamplingTime(new Date());
|
result.setSamplingTime(new Date());
|
||||||
|
result.setFinished(true);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue