public class Test1 extends TestListenerAdapter {
static public WebDriver driver = new FirefoxDriver(); //драйвер
private String baseUrl = "http://localhost/CO/...Profile/Login"; //базовый URL приложения
private StringBuffer verificationErrors = new StringBuffer();
@Override
public void onTestFailure(ITestResult result) {
Reporter.setCurrentTestResult(result);
System.out.println("F");
Reporter.log("f");
}
@Test
public void incorrectLoginPassword() throws Exception {
driver.get(baseUrl);
driver.findElement(By.id("Login_I")).sendKeys("u7728029110");
driver.findElement(By.id("Password_I")).sendKeys("12");
driver.findElement(By.id("Password_")).sendKeys("12");
}
Почему не срабатывает метод on testFalure()?
- Форум тестировщиков
- → Просмотр профиля: Темы: Seploid