add observer to testplan when running
This commit is contained in:
parent
65aec6550e
commit
d461e5f325
|
@ -128,7 +128,6 @@ public class TestPlanEngine implements TaskCompleteCallback,
|
||||||
throws IllegalParameterException {
|
throws IllegalParameterException {
|
||||||
TestPlan testPlan = this.getTestPlanFactory().createATestPlanWithoutId(
|
TestPlan testPlan = this.getTestPlanFactory().createATestPlanWithoutId(
|
||||||
testPlanBusinessModel, user, testPlanRunId);
|
testPlanBusinessModel, user, testPlanRunId);
|
||||||
testPlan.addObserver(this);
|
|
||||||
Logger.getLogger(TestPlanService.class).info(
|
Logger.getLogger(TestPlanService.class).info(
|
||||||
"test plan name:" + testPlan.getName());
|
"test plan name:" + testPlan.getName());
|
||||||
return this.getTestPlanRepository().attach(testPlan);
|
return this.getTestPlanRepository().attach(testPlan);
|
||||||
|
@ -142,6 +141,7 @@ public class TestPlanEngine implements TaskCompleteCallback,
|
||||||
+ testPlanId.toString());
|
+ testPlanId.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
testPlan.addObserver(this);
|
||||||
testPlan.run();
|
testPlan.run();
|
||||||
this.getTestPlanRepository().attachRunningTestPlan(testPlan);
|
this.getTestPlanRepository().attachRunningTestPlan(testPlan);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue