Skip to content

Commit

Permalink
Fixed #249 When groups "include" in suite, ResultUpdator not awaiting
Browse files Browse the repository at this point in the history
for completion
  • Loading branch information
cjayswal committed Mar 17, 2019
1 parent d58b1d1 commit 3ffe9ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/com/qmetry/qaf/automation/core/TestBaseProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.Iterator;
import java.util.Vector;

import com.qmetry.qaf.automation.integration.ResultUpdator;
import com.qmetry.qaf.automation.ui.webdriver.ChromeDriverHelper;

/**
Expand Down Expand Up @@ -96,6 +97,7 @@ public void run() {
TestBaseProvider.instance().prepareForShutDown();
TestBaseProvider.instance().stopAll();
ChromeDriverHelper.teardownService();
ResultUpdator.awaitTermination();
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/com/qmetry/qaf/automation/testng/TestNGTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ final public void setupMethod(Method m, ITestContext context) {
this.context = context;
}

@AfterSuite
@AfterSuite(alwaysRun = true)
final public void afterSuit(ITestContext testContext) {
TestBaseProvider.instance().stopAll();
ResultUpdator.awaitTermination();
Expand Down

0 comments on commit 3ffe9ec

Please sign in to comment.