Created
October 10, 2018 19:03
-
-
Save nikolay-advolodkin/b5a2259283ffb4e7f492d6eb84d41df4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AfterMethod | |
public void tearDown(ITestResult result) throws Exception { | |
((JavascriptExecutor) webDriver.get()). | |
executeScript("sauce:job-result=" + (result.isSuccess() ? "passed" : "failed")); | |
webDriver.get().quit(); | |
//todo all other logic that you want to perform here should come after the 2 calls at the top | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment