コード例 #1
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);
        }