diff --git a/Bench4Q-Master/src/main/java/org/bench4q/master/domain/service/TestPlanEngine.java b/Bench4Q-Master/src/main/java/org/bench4q/master/domain/service/TestPlanEngine.java index 4d02ebc4..02773447 100644 --- a/Bench4Q-Master/src/main/java/org/bench4q/master/domain/service/TestPlanEngine.java +++ b/Bench4Q-Master/src/main/java/org/bench4q/master/domain/service/TestPlanEngine.java @@ -128,7 +128,6 @@ public class TestPlanEngine implements TaskCompleteCallback, throws IllegalParameterException { TestPlan testPlan = this.getTestPlanFactory().createATestPlanWithoutId( testPlanBusinessModel, user, testPlanRunId); - testPlan.addObserver(this); Logger.getLogger(TestPlanService.class).info( "test plan name:" + testPlan.getName()); return this.getTestPlanRepository().attach(testPlan); @@ -142,6 +141,7 @@ public class TestPlanEngine implements TaskCompleteCallback, + testPlanId.toString()); return; } + testPlan.addObserver(this); testPlan.run(); this.getTestPlanRepository().attachRunningTestPlan(testPlan); }