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 characters
| package com.yahoo.test.library; | |
| import org.testng.Assert; | |
| import org.testng.Reporter; | |
| import com.thoughtworks.selenium.SeleneseTestBase; | |
| public class CustomVerification extends SeleneseTestBase { | |
| private StringBuffer verificationErrors; |
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 characters
| using System; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| using System.Threading; | |
| using NUnit.Framework; |
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 characters
| import javax.mail.Authenticator; | |
| import javax.mail.Flags; | |
| import javax.mail.Folder; | |
| import javax.mail.Message; | |
| import javax.mail.MessagingException; | |
| import javax.mail.PasswordAuthentication; | |
| import javax.mail.Session; | |
| import javax.mail.Store; | |
| import javax.mail.internet.InternetAddress; | |
| import javax.mail.search.FromTerm; |
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 characters
| @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()) { |
NewerOlder