Skip to content

Instantly share code, notes, and snippets.

@nikolay-advolodkin
Created October 10, 2018 19:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nikolay-advolodkin/b5a2259283ffb4e7f492d6eb84d41df4 to your computer and use it in GitHub Desktop.
@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