This post covers the sample test scenarios and test cases for the registration form. I have taken the example registration form from jotform system. You can choose the alternative registration form if you wish but then the number of fields and the cases for the form will vary.
If you are posting the below content to some interview questions site or the forum, please do post the link to this post as well. 🙂
Please take a look at the text fields of the registration form.
Preconditions:
- The zipcode needs to be a number.
- The phone number is 10 digit and the area code needs to be min. 3 number and maximum 5 numbers.
- If required fields are not filled or wrong data is inserted then jotform triggers error after submission of the form.
The test cases for the registration form are sorted per field as explained below.
Generic Form Field Tests
- Check the behavior of form by not filling up any data into the form.
- Check the by not filling up the required fields.
- Check the behavior of form by adding random data in the text field.
- Check the by not filling up the full name text field but by filling up rest of the other fields.
- Check the behavior of form by filling other text fields except address text fields.
- Check the form by filling other text fields except phone number text field.
- Check the form by filling other text fields except email text field.
Testing Full Name Field
- Check the Full name text field without Prefix.
- Check the Full name text field without adding First name.
- Check the Full name text field without adding Last name.
- Check the Full name text field with special characters in Prefix.
- Check the Full name text field with special characters in First name.
- Check the Full name text field with special characters in Last name.
- Check by adding numbers instead of string in the full name text field.
Testing Address Field
- Check if all the text fields in the address field are mandatory or not.
- Check if the second line of the street field can be kept blank.
- Check the first line of the street text field in address by adding nothing into it.
- Check the city text field by adding numbers into it.
- Check the city text field by adding no data.
- Check the state text field by adding no data.
- Check the state text field by adding numbers into it.
- Check the state text field by adding data more than the field limit.
- Check the behavior of form by not selecting the country from the drop-down menu of the country field.
- Check the behavior of the form by selecting wrong country to that of address field content.
- Check the zipcode text field with string instead of numbers.
- Check the zipcode text field with numbers shorter than required.
- Check the zipcode text field with numbers larger than required for the specific state or place.
Testing Phone Number Field
- Check the Phone text field with area code being string instead of numbers.
- Check the Phone text field with phone number being string instead of numbers.
- Check the Phone text field with both area code and phone number both being string instead of numbers.
- Check the Phone text field with no data added.
Testing Email Field
- Check the Email text field that has Email address without @ symbol.
- Check the Email text field that has random string instead of real email.
- Check the Email text field that has @ symbol written in words.
- Check the Email text field that has missing dot in the email address.
- Check the Email text field as “name@gmail”
- Check the Email text field as “@gmail”
- Check the Email text field as “name@gmail..com”
- Check the Email text field as “name@192.168.1.1.0”
- Check the Email text field as “name.. @gmail.com”
I hope the test cases explained above helps. Feel free to add your own test cases to the list as you see fit. Let me know in the comments if the above test cases helped. Also feel free to let me know your feedback in the comments.
vartman.shukla@gmail.com says
good sir coverage all point in these test cases
Vanitha says
Thank u so much
Maruthi says
Thank you
narendra says
nice article
reddy says
thank you
nurdygurly says
I think all possible scenarios are covered…..Thank u