update script behavior

This commit is contained in:
fanfuxiaoran 2014-07-02 17:34:01 +08:00
parent e9ffadad75
commit e26592c7a5
7 changed files with 36 additions and 43 deletions

View File

@ -9,6 +9,8 @@ import javax.xml.bind.annotation.XmlRootElement;
public class BehaviorBriefModel {
private int behaviorId;
private String behaviorUrl;
private long totalCount;
private long successfulCount;
private List<BehaviorStatusCodeResultModel> detailStatusCodeResultModels;
@XmlElement
@ -40,4 +42,22 @@ public class BehaviorBriefModel {
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;
}
}

View File

@ -1,8 +1,8 @@
package org.bench4q.share.models.master.plugin;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.sun.xml.internal.txw2.annotation.XmlElement;
@XmlRootElement
public class ParamTypeModel {

View File

@ -1,32 +1,24 @@
package org.bench4q.share.models.master.statistics;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import org.bench4q.share.models.agent.statistics.AgentBehaviorsBriefModel;
import org.bench4q.share.models.agent.BehaviorBriefModel;
@XmlRootElement(name = "scriptBehaviorsBriefModel")
public class ScriptBehaviorsBriefModel extends SampleModel {
private boolean finished;
private AgentBehaviorsBriefModel testBehaviorsBriefModel;
private List<BehaviorBriefModel> behaviorBriefModels;
@XmlElement
public boolean isFinished() {
return finished;
@XmlElementWrapper(name = "behaviorBriefList")
@XmlElement(name = "behaviorBrief")
public List<BehaviorBriefModel> getBehaviorBriefModels() {
return behaviorBriefModels;
}
public void setFinished(boolean finished) {
this.finished = finished;
}
@XmlElement
public AgentBehaviorsBriefModel getTestBehaviorsBriefModel() {
return testBehaviorsBriefModel;
}
public void setTestBehaviorsBriefModel(
AgentBehaviorsBriefModel testBehaviorsBriefModel) {
this.testBehaviorsBriefModel = testBehaviorsBriefModel;
public void setBehaviorBriefModels(
List<BehaviorBriefModel> behaviorBriefModels) {
this.behaviorBriefModels = behaviorBriefModels;
}
}

View File

@ -18,7 +18,6 @@ public class ScriptBriefResultModel extends SampleModel {
private long averageElapsedTime;
private long planedRunningTime;
private long vUserCount;
private boolean finished;
@XmlElement
public long getTotalSuccessCountFromBegin() {
@ -120,14 +119,6 @@ public class ScriptBriefResultModel extends SampleModel {
this.planedRunningTime = planedRunningTime;
}
@XmlElement
public boolean isFinished() {
return finished;
}
public void setFinished(boolean finished) {
this.finished = finished;
}
@XmlElement
public long getvUserCount() {

View File

@ -5,7 +5,6 @@ import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ScriptPageBriefModel extends SampleModel {
private boolean finished;
private long countFromBegin;
private long maxResponseTimeFromBegin;
private long minResponseTimeFromBegin;
@ -14,15 +13,6 @@ public class ScriptPageBriefModel extends SampleModel {
private long throughputThisTime;
public long totalResponseTimeThisTime;
@XmlElement
public boolean isFinished() {
return finished;
}
public void setFinished(boolean finished) {
this.finished = finished;
}
@XmlElement
public long getCountFromBegin() {
return countFromBegin;

View File

@ -12,8 +12,8 @@ import javax.xml.bind.annotation.XmlRootElement;
public class ScriptPagesBriefModel extends SampleModel {
private List<ScriptPageBriefModel> scriptPageBriefModels;
@XmlElementWrapper
@XmlElement
@XmlElementWrapper(name="pageBriefs")
@XmlElement(name="pageBrief")
public List<ScriptPageBriefModel> getScriptPageBriefModels() {
return scriptPageBriefModels;
}

View File

@ -52,8 +52,8 @@ public class ScriptResultModel extends SampleModel {
private static ScriptPagesBriefModel buildFinishedPages() {
ScriptPagesBriefModel result = new ScriptPagesBriefModel();
result.setFinished(true);
result.setSamplingTime(new Date());
result.setFinished(true);
return result;
}