Пример #1
0
 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();
 }
Пример #2
0
 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");
 }
Пример #3
0
 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();
 }
Пример #4
0
 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");
 }
Пример #5
0
        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();
        }
Пример #6
0
        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();
        }