Created
January 3, 2012 19:20
Revisions
-
tarun3kumar revised this gist
Jan 6, 2012 . No changes.There are no files selected for viewing
-
tarun3kumar revised this gist
Jan 3, 2012 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ @AfterMethod(alwaysRun = true) public void shutDownDriver(ITestResult result) throws IOException { @@ -17,5 +16,4 @@ public void shutDownDriver(ITestResult result) throws IOException { } driver.manage().deleteAllCookies(); driver.quit(); } -
tarun3kumar renamed this gist
Jan 3, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
tarun3kumar revised this gist
Jan 3, 2012 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,5 @@ ```java @AfterMethod(alwaysRun = true) public void shutDownDriver(ITestResult result) throws IOException { // Update SauceLabs result -
tarun3kumar renamed this gist
Jan 3, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
tarun3kumar revised this gist
Jan 3, 2012 . 1 changed file with 18 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,23 @@ ```java @AfterMethod(alwaysRun = true) public void shutDownDriver(ITestResult result) throws IOException { }@AfterMethod(alwaysRun = true) public void shutDownDriver(ITestResult result) throws IOException { // Update SauceLabs result if(testbed.equals("saucelab")) { String jobID = ((RemoteWebDriver)driver).getSessionId().toString(); SauceREST client = new SauceREST("username", "key"); Map<String, Object>sauceJob = new HashMap<String, Object>(); sauceJob.put("name", "Test method: "+result.getMethod().getMethodName()); if(result.isSuccess()) { client.jobPassed(jobID); } else { client.jobFailed(jobID); } client.updateJobInfo(jobID, sauceJob); } driver.manage().deleteAllCookies(); driver.quit(); } ``` -
tarun3kumar revised this gist
Jan 3, 2012 . 1 changed file with 0 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,5 @@ ```java @AfterMethod(alwaysRun = true) public void shutDownDriver(ITestResult result) throws IOException { } ``` -
tarun3kumar revised this gist
Jan 3, 2012 . No changes.There are no files selected for viewing
-
tarun3kumar created this gist
Jan 3, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ ```java @AfterMethod(alwaysRun = true) public void shutDownDriver(ITestResult result) throws IOException { // Update SauceLabs result if(testbed.equals("saucelab")) { String jobID = ((RemoteWebDriver)driver).getSessionId().toString(); SauceREST client = new SauceREST("username", "key"); Map<String, Object>sauceJob = new HashMap<String, Object>(); sauceJob.put("name", "Test method: "+result.getMethod().getMethodName()); if(result.isSuccess()) { client.jobPassed(jobID); } else { client.jobFailed(jobID); } client.updateJobInfo(jobID, sauceJob); } driver.manage().deleteAllCookies(); driver.quit(); } ```