org.testng.annotations.AfterSuite Java Examples

The following examples show how to use org.testng.annotations.AfterSuite. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Utils.java    From azure-cosmosdb-java with MIT License 6 votes vote down vote up
@AfterSuite(groups = "samples")
public void cleanupStaleDatabase() {

    ConnectionPolicy connectionPolicy = new ConnectionPolicy();
    connectionPolicy.setConnectionMode(ConnectionMode.Direct);
    RetryOptions options = new RetryOptions();
    connectionPolicy.setRetryOptions(options);

    AsyncDocumentClient client = this.clientBuilder()
        .withServiceEndpoint(TestConfigurations.HOST)
        .withMasterKeyOrResourceToken(TestConfigurations.MASTER_KEY)
        .withConnectionPolicy(connectionPolicy)
        .build();

    safeCleanDatabases(client);
    client.close();
}
 
Example #2
Source File: azureTestNG.java    From samples with MIT License 5 votes vote down vote up
@AfterSuite
public void Teardown() {
  try {
    if(driver != null)
      driver.quit();
  } catch (Exception e) {
      e.printStackTrace();
  }
}
 
Example #3
Source File: TestSuiteBase.java    From azure-cosmosdb-java with MIT License 5 votes vote down vote up
@AfterSuite(groups = {"simple", "long", "direct", "multi-master", "emulator", "non-emulator"}, timeOut = SUITE_SHUTDOWN_TIMEOUT)
public static void afterSuite() {
    logger.info("afterSuite Started");
    AsyncDocumentClient houseKeepingClient = createGatewayHouseKeepingDocumentClient().build();
    try {
        safeDeleteDatabase(houseKeepingClient, SHARED_DATABASE);
        DatabaseForTest.cleanupStaleTestDatabases(DatabaseManagerImpl.getInstance(houseKeepingClient));
    } finally {
        safeClose(houseKeepingClient);
    }
}
 
Example #4
Source File: ReactiveStreamsTck.java    From microprofile-reactive-streams-operators with Apache License 2.0 5 votes vote down vote up
@AfterSuite(alwaysRun = true)
public void shutdownEngine() {
    if (engine != null) {
        shutdownEngine(engine);
    }
    executorService.shutdown();
}
 
Example #5
Source File: InMemorySuiteInitializer.java    From ballerina-message-broker with Apache License 2.0 5 votes vote down vote up
@AfterSuite
public void afterSuite(ITestContext context) {
    System.gc(); // Hint JVM to clear unreference objects. Just to help detect ByteBuf object leaks.
    restServer.stop();
    server.stop();
    broker.stopMessageDelivery();
    LOGGER.info("Stopped broker for suite " + context.getSuite().getName());
}
 
Example #6
Source File: DefaultSuiteInitializer.java    From ballerina-message-broker with Apache License 2.0 5 votes vote down vote up
@AfterSuite
public void afterSuite(ITestContext context) {
    System.gc(); // Hint JVM to clear unreference objects. Just to help detect ByteBuf object leaks.
    restServer.stop();
    server.stop();
    broker.stopMessageDelivery();
    LOGGER.info("Stopped broker for suite " + context.getSuite().getName());
}
 
Example #7
Source File: MegabusRefResolverTest.java    From emodb with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void tearDown() {
    testDriver.close();
}
 
Example #8
Source File: JavacTemplateTestBase.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@AfterSuite
// After the suite is done, dump any errors to output
public void dumpErrors() {
    if (!suiteErrors.isEmpty())
        System.err.println("Errors found in test suite: " + suiteErrors);
}
 
Example #9
Source File: FDSeparateCompilationTest.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@AfterSuite
public void cleanupCompilerCache() {
    Compiler.purgeCache();
}
 
Example #10
Source File: PulsarZKDowngradeTest.java    From pulsar with Apache License 2.0 4 votes vote down vote up
@AfterSuite
@Override
public void tearDownCluster() {
    super.tearDownCluster();
}
 
Example #11
Source File: CucumberRunner.java    From testng-cucumber with MIT License 4 votes vote down vote up
@AfterSuite(alwaysRun = true)
public void quit() throws IOException, InterruptedException {
	driver.quit();
}
 
Example #12
Source File: TestNGTestCase.java    From qaf with MIT License 4 votes vote down vote up
@AfterSuite(alwaysRun = true)
final public void afterSuit(ITestContext testContext) {
	TestBaseProvider.instance().stopAll();
	ResultUpdator.awaitTermination();
}
 
Example #13
Source File: CucumberRunner.java    From testng-cucumber with MIT License 4 votes vote down vote up
@AfterSuite(alwaysRun=true)
public void generateHTMLReports() {
	ReportHelper.generateCucumberReport();
}
 
Example #14
Source File: TestParameters.java    From journaldev with MIT License 4 votes vote down vote up
@AfterSuite
@Parameters("after_suite")
public void afterSuite(@Optional("Default Parameter") String s) {
	System.out.println("After Suite Parameter = " + s);

}
 
Example #15
Source File: TestBasicPresto.java    From pulsar with Apache License 2.0 4 votes vote down vote up
@AfterSuite
@Override
public void tearDownCluster() {
    super.tearDownCluster();
}
 
Example #16
Source File: PulsarTestSuite.java    From pulsar with Apache License 2.0 4 votes vote down vote up
@AfterSuite
@Override
public void tearDownCluster() {
    super.tearDownCluster();
}
 
Example #17
Source File: PulsarStandaloneTestSuite.java    From pulsar with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void tearDownCluster() throws Exception {
    super.stopCluster();
}
 
Example #18
Source File: FDTest.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@AfterSuite
static void teardown() throws IOException {
    fm.close();
}
 
Example #19
Source File: FDSeparateCompilationTest.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@AfterSuite
public void cleanupCompilerCache() {
    Compiler.purgeCache();
}
 
Example #20
Source File: JavacTemplateTestBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@AfterSuite
// After the suite is done, dump any errors to output
public void dumpErrors() {
    if (!suiteErrors.isEmpty())
        System.err.println("Errors found in test suite: " + suiteErrors);
}
 
Example #21
Source File: PulsarStandaloneTestSuite2_2.java    From pulsar with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void tearDownCluster() throws Exception {
    super.stopCluster();
}
 
Example #22
Source File: HtmlEngineBaseTest.java    From ats-framework with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void afterSuiteHtmlEngineBaseTest() throws Exception {

    browserDriver.stop();
}
 
Example #23
Source File: PerSuiteFixtures.java    From allure-java with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void afterSuite2() {
    step();
}
 
Example #24
Source File: PerSuiteFixtures.java    From allure-java with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void afterSuite1() {
    step();
}
 
Example #25
Source File: ParallelMethods.java    From allure-java with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void afterSuite() {
    stepSeven();
}
 
Example #26
Source File: AfterFixturesCombination.java    From allure-java with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void afterSuiteTwo() {
    afterSuiteTwoStep();
}
 
Example #27
Source File: FailedAfterSuite.java    From allure-java with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void afterSuite() throws Exception {
    throw new RuntimeException();
}
 
Example #28
Source File: AllFeatures.java    From allure-java with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void afterSuite2() throws IOException {
    step2("from after suite 2", "");
}
 
Example #29
Source File: AllFeatures.java    From allure-java with Apache License 2.0 4 votes vote down vote up
@AfterSuite
public void afterSuite1() throws IOException {
    addImgAttachment();
    addStringAttachment();
}
 
Example #30
Source File: FDSeparateCompilationTest.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@AfterSuite
public void cleanupCompilerCache() {
    Compiler.purgeCache();
}