public void Test01() { ExReports.createTest("Login with invalid UserName and Pass"); lp.clearUserNameAndPass(); lp.inputCredentialsAndSubmit(INVALID_LOGON, INVALID_PASS); lp.checkErrorMessage(AUTORIZATION_ERROR_MESSAGE); lp.checkUserNameAndPassAreEmpty(); }
public void Test04() { ExReports.createTest("Login with valid credentials"); lp.clearUserNameAndPass(); lp.inputCredentialsAndSubmit(USER_NAME, PASS); Profile.goToStore(); Common.checkElementIsDisplayed("Logo", "logo"); ExReports.reportPass("Login is successful"); }
public void Test03() { ExReports.createTest("Login with Password only"); lp.clearUserNameAndPass(); lp.fillPass(PASS); lp.clickSubmitButton(); lp.checkErrorMessage("ERROR: The username field is empty."); lp.checkUserNameAndPassAreEmpty(); }
public void Test02() { ExReports.createTest("Login with UserName only"); lp.clearUserNameAndPass(); lp.fillUserName(USER_NAME); lp.clickSubmitButton(); lp.checkErrorMessage("ERROR: The password field is empty."); Common.checkFieldValue("user_login", USER_NAME); Common.checkFieldIsEmpty("Password", "user_pass"); }
public void Test05() { ExReports.createTest("Automation Practice Form"); FormPage f = new FormPage(BaseClass.getDriver); BaseClass.goToURL(FORM_URL); f.isElementPresent(); f.selectLinks(); f.fillUserFields(); f.fillDate(); f.selectSex(); f.selectProfessionYearsAndTool(); f.selectContinent(); f.selectCommands(); }
public void Test01() { ExReports.createTest("Find and purchase item"); StorePage s = new StorePage(BaseClass.getDriver); s.searchItem("iphone"); s.openItem(); s.addToCard(); s.checkOutItem(); s.mail = "*****@*****.**"; s.firstName = "Gleb"; s.lastName = "Shustin"; s.address = "9041 E Shorewood Dr."; s.city = "Seattle"; s.state = "WA"; s.county = "USA"; s.phone = "4255335454"; s.submitItem(); }