package com.hr.generic;
import com.hr.automation.sahi.Button;
import com.hr.automation.sahi.Password;
import com.hr.automation.sahi.TextBox;
public class RecoveryScenarios extends DriverScript {
public boolean environmentDown()
{
return true;
}
public boolean someTechincalError()throws Throwable
{
browser.navigateTo(configProps.getProperty("URL"), true);
System.out.println("In someTechnicalError recovery");
return true;
}
public boolean unableToLoginWithCredentials() throws Throwable
{
Thread.sleep(10000);
browser.button("OK").click();
browser.navigateTo(configProps.getProperty("URL"), true);
if(TextBox.setText("username", configProps.getProperty("UserName"))==false)
{
return false;
}
if(Password.setPassword("password", configProps.getProperty("Password"))==false)
{
DriverScript.bResult = false;
return false;
}
if(Button.click("Submit")==false)
{
DriverScript.bResult = false;
return false;
}
return true;
}
public boolean singleUserLogin()throws Throwable
{
if(Button.click("OK")==false)
{
return false;
}
return true;
}
}
Tuesday, August 30, 2016
RecoveryScenarios
Subscribe to:
Post Comments (Atom)
Best selenium online training institute `
ReplyDeletePretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
ReplyDeleteSoftware Testing Services
Functional Testing Services
Test Automation Services
QA Automation Testing Services
Regression Testing Services
API Testing Services
Compatibility Testing Services
Performance Testing Services
Security Testing Services
Vulnerability Testing Services
Functional Testing Services
This is really a worthy and wonderful blog to read and further more tips on the software testing have been learnt. thanks for sharing your views among us and its great time spending on this.
ReplyDeleteSoftware Testing Services
Software Testing Services in India
Software Testing Companies in India
Software Testing Services in USA
Software Testing Companies in USA
Software Testing Companies
Software Testing Services Company
Independent Software Testing Services
I would like to thank you for the efforts you have made in writing this article about Software Testing Services in Boston. I am hoping the same best work from you in the future as well Software Testing Companies in Chicago. Thank you for sharing such a great blog post Software Testing Companies in Dallas with us this blog is really informative and useful, keep it up..
ReplyDeleteRead more - Software Testing Services in Florida