예제 #1
0
 def test_all_but_email(self):
     driver = self.driver
     driver.get(siteurl)
     login = LoginPage(driver)
     login.click_on_signup_button()
     signup_page = SignUpPage(driver)
     signup_page.enter_firstName("Mark")
     signup_page.enter_lastName("Zuckerberg")
     signup_page.enter_birth_date("17/03/2020")
     signup_page.enter_mailing_address("Facebook")
     signup_page.enter_city("Windsor")
     signup_page.select_state("Connecticut")
     signup_page.enter_postal_code("90001")
     signup_page.enter_password("ABC@123")
     signup_page.click_on_form_submit_button()
     expected_message_email_required = signup_page.email_mandat_dialogue()
     assert expected_message_email_required == "required"
예제 #2
0
 def test_all_field_existing_email(self):
     driver = self.driver
     driver.get(siteurl)
     login = LoginPage(driver)
     login.click_on_signup_button()
     signup_page = SignUpPage(driver)
     signup_page.enter_firstName("Mark")
     signup_page.enter_lastName("Zuckerberg")
     signup_page.enter_birth_date("17/03/2020")
     signup_page.enter_email("*****@*****.**")
     signup_page.enter_mailing_address("Facebook")
     signup_page.enter_city("Windsor")
     signup_page.select_state("Connecticut")
     signup_page.enter_postal_code("90001")
     signup_page.enter_password("ABC@123")
     signup_page.click_on_form_submit_button()
     email_duplicate_message = signup_page.email_mandat_dialogue()
     assert email_duplicate_message == "Email is already registered"
예제 #3
0
 def test_all_field_happy_Path(self):
     driver = self.driver
     driver.get(siteurl)
     login = LoginPage(driver)
     login.click_on_signup_button()
     signup_page = SignUpPage(driver)
     signup_page.enter_firstName("Mark")
     signup_page.enter_lastName("Zuckerberg")
     signup_page.enter_birth_date("17/03/2020")
     signup_page.enter_email("*****@*****.**")
     signup_page.enter_mailing_address("Facebook")
     signup_page.enter_city("Windsor")
     signup_page.select_state("Connecticut")
     signup_page.enter_postal_code("90001")
     signup_page.enter_password("ABC@123")
     signup_page.click_on_form_submit_button()
     expected = signup_page.validate_signup_successfull()
     assert expected == "Thank you for signup!"
예제 #4
0
 def test_mandatory_field(self):
     driver = self.driver
     driver.get(siteurl)
     login = LoginPage(driver)
     login.click_on_signup_button()
     signup_page = SignUpPage(driver)
     signup_page.enter_firstName("Mohit")
     signup_page.enter_lastName("Singh")
     signup_page.enter_email("*****@*****.**")
     signup_page.enter_mailing_address("Society1")
     signup_page.enter_city("Windsor")
     signup_page.select_state("Connecticut")
     signup_page.enter_postal_code("90001")
     signup_page.enter_password("ABC@123")
     signup_page.click_on_form_submit_button()
     signup_page = SignUpPage(driver)
     expected = signup_page.validate_signup_successfull()
     assert expected == "Thank you for signup!"