add testStatus to monitor doAfterRun
This commit is contained in:
parent
a368444412
commit
2866bd973e
|
@ -90,7 +90,9 @@ public class Monitor extends Observable {
|
|||
|
||||
}
|
||||
|
||||
public void doAfterRun() {
|
||||
public void doAfterRun(Boolean testPlanFinished) {
|
||||
if (testPlanFinished)
|
||||
return;
|
||||
try {
|
||||
MonitorMain monitorResult = getTestMonitorSampler()
|
||||
.getMonitorResult(hostName, port);
|
||||
|
|
|
@ -195,7 +195,7 @@ public class TestPlan implements IAggregate {
|
|||
}
|
||||
if (getMonitors() != null) {
|
||||
for (Monitor monitor : getMonitors()) {
|
||||
monitor.doAfterRun();
|
||||
monitor.doAfterRun(isFinish());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ public class Test_Monitor extends TestBase_MakeUpTestPlan {
|
|||
getTestPlanRunIdUuid());
|
||||
assertEquals(1, testPlan.getMonitors().size());
|
||||
for (Monitor monitor : testPlan.getMonitors()) {
|
||||
monitor.doAfterRun();
|
||||
monitor.doAfterRun(testPlan.isFinish());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ public class Test_Monitor extends TestBase_MakeUpTestPlan {
|
|||
getTestPlanRunIdUuid());
|
||||
assertEquals(1, testPlan.getMonitors().size());
|
||||
for (Monitor monitor : testPlan.getMonitors()) {
|
||||
monitor.doAfterRun();
|
||||
monitor.doAfterRun(false);
|
||||
}
|
||||
for (Monitor monitor : getTestPlanRepository().getTestPlanBy(
|
||||
getTestPlanRunIdUuid()).getMonitors()) {
|
||||
|
|
Loading…
Reference in New Issue