org.testng.annotations.AfterSuite源码实例Demo

类org.testng.annotations.AfterSuite源码实例Demo

下面列出了org.testng.annotations.AfterSuite 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: azure-cosmosdb-java   文件: Utils.java
@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();
}
 
@AfterSuite(alwaysRun = true)
public void shutdownEngine() {
    if (engine != null) {
        shutdownEngine(engine);
    }
    executorService.shutdown();
}
 
源代码3 项目: azure-cosmosdb-java   文件: TestSuiteBase.java
@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);
    }
}
 
@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());
}
 
@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());
}
 
源代码6 项目: samples   文件: azureTestNG.java
@AfterSuite
public void Teardown() {
  try {
    if(driver != null)
      driver.quit();
  } catch (Exception e) {
      e.printStackTrace();
  }
}
 
@AfterSuite
public void shutdown() {
    executor.shutdown();
}
 
@AfterSuite
public void shutdown() {
    executor.shutdown();
}
 
源代码9 项目: FHIR   文件: AbstractPersistenceTest.java
@AfterSuite(alwaysRun = true)
public void tearDown() throws Exception {
    shutdownDatabase();
}
 
源代码10 项目: TencentKona-8   文件: JavacTemplateTestBase.java
@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);
}
 
源代码11 项目: TencentKona-8   文件: FDSeparateCompilationTest.java
@AfterSuite
public void cleanupCompilerCache() {
    Compiler.purgeCache();
}
 
源代码12 项目: pushfish-android   文件: SuiteCleanup.java
@AfterSuite
public void cleanupSuite() {
}
 
源代码13 项目: pushfish-android   文件: SuiteCleanup.java
@AfterSuite
public void cleanupSuite() {
}
 
源代码14 项目: jdk8u60   文件: JavacTemplateTestBase.java
@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);
}
 
源代码15 项目: jdk8u60   文件: FDSeparateCompilationTest.java
@AfterSuite
public void cleanupCompilerCache() {
    Compiler.purgeCache();
}
 
@AfterSuite(alwaysRun = true)
public void tearDownOnce() throws IOException, DatabricksRestException {
  //We remove all clusters with the prefix
  TestUtil.cleanupTestClusters(service, TestUtil.getTestClusters(service));
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (AppiumFactory appiumFactory : webDriverThreadPool) {
        appiumFactory.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite
public static void cleanUpDriver() {
    driver.quit();
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}
 
@AfterSuite(alwaysRun = true)
public static void closeDriverObjects() {
    for (DriverFactory webDriverThread : webDriverThreadPool) {
        webDriverThread.quitDriver();
    }
}