Пример #1
0
        public void GivenIEnterTheRandomlyGeneratedPassword(String testType)
        {
            String password;

            if (testType.Equals("valid"))
            {
                password = SignUpPage.GenerateRandomString(8, rand) + "123";
            }
            else
            {
                password = null;
                //TODO: negative scenarios
            }
            signUpPage.Password().SendKeys(password);
        }
Пример #2
0
        public void GivenIEnterTheRandomlyGeneratedSurname(String testType)
        {
            String lastName;

            if (testType.Equals("valid"))
            {
                lastName = "A" + SignUpPage.GenerateRandomString(8, rand).ToLower();
            }
            else
            {
                lastName = null;
                //TODO: negative scenarios
            }
            signUpPage.LastName().SendKeys(lastName);
        }
Пример #3
0
        public void GivenIEnterTheRandomlyGeneratedEmail(String testType)
        {
            String email;

            if (testType.Equals("valid"))
            {
                email = SignUpPage.GenerateRandomString(8, rand) + "@gmail.com";
            }
            else
            {
                email = null;
                //TODO: negative scenarios
            }
            signUpPage.EmailPhone().SendKeys(email);
            signUpPage.ConfirmEmailPhone().SendKeys(email);
        }
Пример #4
0
        public void GivenIEnterTheRandomlyGeneratedFirstname(String testType)
        {
            String firstName;
            Random rand = new Random();

            if (testType.Equals("valid"))
            {
                firstName = "A" + SignUpPage.GenerateRandomString(8, rand).ToLower();
            }
            else
            {
                firstName = null;
                //TODO: negative scenarios
            }
            signUpPage.FirstName().SendKeys(firstName);
        }