Created
October 10, 2018 19:03
Star
You must be signed in to star a gist
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