Skip to content

Instantly share code, notes, and snippets.

@tarun3kumar
Created January 3, 2012 19:20
Show Gist options
  • Save tarun3kumar/1556448 to your computer and use it in GitHub Desktop.
Save tarun3kumar/1556448 to your computer and use it in GitHub Desktop.
Update SauceLabs Results using Selenium2/WebDriver
```java
@AfterMethod(alwaysRun = true)
public void shutDownDriver(ITestResult result) throws IOException {
}
```
@baublebar-qa
Copy link

Hi Tarun, Can I know what key you are using?

@tarun3kumar
Copy link
Author

are you serious?

@rsingh-qasource
Copy link

hi ,

i am using this

TestResult result = new TestResult();

        if (result.wasSuccessful()==true) {
            System.out.println("Registering session passed " + sessionId);
            client.jobPassed(sessionId);
        } else {
            System.out.println("Registering session failed " + sessionId);
            client.jobFailed(sessionId);
        }

and it every time goes to the if loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment