use of org.testng.annotations.AfterMethod in project zalenium by zalando.
the class ParallelIT method quitBrowser.
@AfterMethod(alwaysRun = true)
public void quitBrowser(Method method, Object[] testArgs) {
webDriver.get().quit();
String browserType = testArgs[0].toString();
Platform platform = (Platform) testArgs[1];
LOGGER.info("FINISHING {} on {} - {}", method.getName(), browserType, platform.name());
}
use of org.testng.annotations.AfterMethod in project helix by apache.
the class TestPartitionMovementThrottle method cleanupTest.
@AfterMethod
public void cleanupTest() throws InterruptedException {
for (String db : _dbs) {
_setupTool.dropResourceFromCluster(CLUSTER_NAME, db);
Thread.sleep(20);
}
_dbs.clear();
Thread.sleep(50);
for (int i = 0; i < _participants.length; i++) {
if (_participants[i].isConnected()) {
_participants[i].syncStop();
}
_participants[i] = new MockParticipantManager(ZK_ADDR, CLUSTER_NAME, _participants[i].getInstanceName());
}
DelayedTransition.clearThrottleRecord();
}
use of org.testng.annotations.AfterMethod in project helix by apache.
the class ZkIntegrationTestBase method endTest.
@AfterMethod
public void endTest(Method testMethod, ITestContext testContext) {
Long startTime = (Long) testContext.getAttribute("StartTime");
long endTime = System.currentTimeMillis();
System.out.println("END " + testMethod.getName() + " at " + new Date(endTime) + ", took: " + (endTime - startTime) + "ms.");
}
use of org.testng.annotations.AfterMethod in project rubix by qubole.
the class TestNonLocalReadRequestChain method cleanup.
@AfterMethod
public void cleanup() throws IOException {
BookKeeperServer.stopServer();
LocalDataTransferServer.stopServer();
File mdFile = new File(CacheConfig.getMDFile(backendPath.toString(), conf));
mdFile.delete();
File localFile = new File(CacheConfig.getLocalPath(backendPath.toString(), conf));
localFile.delete();
backendFile.delete();
}
use of org.testng.annotations.AfterMethod in project atlas by apache.
the class AbstractGraphDatabaseTest method removeVertices.
@AfterMethod
public void removeVertices() {
for (AtlasVertex vertex : newVertices) {
if (vertex.exists()) {
getGraph().removeVertex(vertex);
}
}
getGraph().commit();
newVertices.clear();
}
Aggregations