❓ How
Positive Test Cases:
- Valid Email Test: Enter a valid email id, such as username@example.com, and submit the form. The system should accept the email id and successfully register the user.
- Unique Email Test: Register a new user with an email id that hasn't been previously registered. The system should accept the email id and successfully register the user.
Negative Test Cases:
- Invalid Email Test: Enter an invalid email id, such as username@example, and try to submit the form. The system should display an error message stating that the email id is invalid.
- Duplicate Email Test: Try to register a new user with an email id that has already been registered. The system should display an error message that the email id is already in use.
✅ Points to Remember
- Best Practice: Always include both positive and negative test cases when testing a field to ensure that the system can handle both valid and invalid inputs.
- Pitfall: Avoid using actual email ids for testing, especially in a production environment, as it may lead to unintended consequences like sending out test emails to real users.