This commit is contained in:
liuchongrui 2014-09-25 14:50:40 +08:00
commit 810bfe7c15
2 changed files with 2 additions and 1 deletions

View File

@ -263,7 +263,7 @@ public class TestPlan implements IAggregate {
}
//start monitor to check the limit
UUID testPlanIdUuid = UUID.fromString(this.testPlanRunId);
if (getMonitors() != null) {
if (getMonitors() != null && this.limitModel != null) {
for (Monitor monitor : getMonitors()) {
monitor.start(testPlanIdUuid, this.limitModel);
}

View File

@ -141,6 +141,7 @@ public class TestPlanEngine implements TaskCompleteCallback,
+ testPlanId.toString());
return;
}
testPlan.addObserver(this);
testPlan.run();
this.getTestPlanRepository().attachRunningTestPlan(testPlan);
}