parent
b1b7fa28a1
commit
fcee930598
|
@ -158,7 +158,7 @@ public class TestPlan implements IAggregate {
|
|||
}
|
||||
|
||||
@Transient
|
||||
public LoadDistribute getLoadDistribute() {
|
||||
private LoadDistribute getLoadDistribute() {
|
||||
return loadDistribute;
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ public class TestPlan implements IAggregate {
|
|||
}
|
||||
|
||||
@Transient
|
||||
public TestResultSave getTestResultSave() {
|
||||
private TestResultSave getTestResultSave() {
|
||||
return testResultSave;
|
||||
}
|
||||
|
||||
|
@ -207,8 +207,7 @@ public class TestPlan implements IAggregate {
|
|||
if (isFinish()) {
|
||||
scheScheduledExecutorService.shutdown();
|
||||
}
|
||||
|
||||
doSaveResult(collectResult());
|
||||
getTestResultSave().update(TestPlan.this, collectResult());
|
||||
}
|
||||
}, 0, this.getSampleCycleInSeconds(), TimeUnit.SECONDS);
|
||||
} catch (Exception e) {
|
||||
|
@ -218,7 +217,7 @@ public class TestPlan implements IAggregate {
|
|||
|
||||
}
|
||||
|
||||
public List<Object> collectResult() {
|
||||
private List<Object> collectResult() {
|
||||
List<Object> resultList = new LinkedList<Object>();
|
||||
for (TestPlanScript testPlanScript : getTestPlanScripts()) {
|
||||
List<TestPlanScriptResult> testPlanScriptResults = testPlanScript
|
||||
|
@ -237,10 +236,6 @@ public class TestPlan implements IAggregate {
|
|||
|
||||
}
|
||||
|
||||
public void doSaveResult(List<Object> results) {
|
||||
this.getTestResultSave().update(this, results);
|
||||
}
|
||||
|
||||
@Transient
|
||||
public boolean isFinish() {
|
||||
for (TestPlanScript testPlanScript : this.getTestPlanScripts()) {
|
||||
|
|
|
@ -75,7 +75,7 @@ public class LoadDistribute {
|
|||
testPlanInDomain.doAfterRun();
|
||||
}
|
||||
|
||||
public boolean distributeLoadForScript(RunningScriptInterface runningScript) {
|
||||
private boolean distributeLoadForScript(RunningScriptInterface runningScript) {
|
||||
return distributeLoadForScript(runningScript,
|
||||
runningScript.getRequireLoad());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue