Test email and password format rules
Medium70 pts~25 min
- Validation
- Boundary testing
Practice app · Workshop Registration
A registration form with text fields, radios, checkboxes, selects and validation.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Exercise the email and password format rules and assert each specific message.
Your task
- 1Open TEST_URL, fill
#first-nameand#last-name, type “not-an-email” into#emailand “abc” into#password, then click#submit-button. - 2Assert
#email-errorreads “Enter a valid email address” and#password-errorreads “Password must be at least 8 characters”. - 3Clear
#password, type “abcdefgh” and submit again. - 4Assert
#password-errorreads “Password must contain at least one number”.
Acceptance criteria
#email-errorreads “Enter a valid email address”#password-errorreads “Password must contain at least one number”- At least 3 assertions pass
Selenium WebDriver 4 · QA Automation · Forms & inputs