Test Cases For Contact Us Page: On Every Blog or Website, we have a Contact Us page where a contact form is included mainly to allow users to communicate with the site administrator, share their feedback/messages regarding the website, or reach out to the business owner of the site for services/support. In this article, I have covered a set of test cases for the contact form page that can be used to test the site contact form.
Why do we need a Contact Form on the Contact Us page?
A page on a website that allows users to communicate with the site owner. The page has fields for filling in names, addresses, and types of comments. On most company websites, email and mailing addresses are also included; however, the contact form provides an immediate, convenient way for users to ask the company questions.
|Post On:||Test Cases For Contact Us Page & Contact Form|
|Post Type:||Test Case Example|
|Applicable For:||Freshers & Experience|
|Join Here:||SoftwareTestingo Group Link|
If we look at most of the websites worldwide, we can notice that around 40% of websites or blogs are created using WordPress CMS. There are many popular WordPress plugins for creating a contact form for WordPress.
Test Cases For Contact Us Page
you can limit the number of submissions accepted from an IP within an hour. The system will not accept further submissions within that period. See the attached contact form.
These are the default fields found in a default Drupal contact form and the captcha. Following are its test cases/checklists:
Ensure an error message is displayed on submitting the form by leaving the mandatory fields empty. Expected error messages for the above example are:
- Your name field is required.
- Your e-mail address field is required.
- The subject field is required.
- A message field is required.
- The math question field is required (Or Captcha)
Contact Us Page Test Cases – Name field
- Check if the name accepts valid names.
- Check if the user enters an invalid name and if the warning message is displaying. For example, the name “@run” will be accepted when given in the field.
- Check the name fields that accept the alphanumeric values. If the field is customized, then test accordingly.
- Check if the system rejects the invalid name (input:*##456456@#).
Test Cases For Contact Us Page – E-mail field
- Check if the email field allows valid e-mail IDs. For example, an id: email@example.com should be accepted.
- Check if the warning or error message displays when entering the invalid e-mail IDs. For example, inputs “tester@example” and “tester.example@com” should not be accepted.
Contact Us Page Test Cases – Subject field.
Check if the system accepts the valid subject. Usually, all alphanumeric entries will be accepted. If there are other specifications like character limits, check that as well.
Contact Form Tester – Message field
Check if the system accepts valid messages. Usually, all alphanumeric entries will be accepted. If there are other specifications like character limits, check that as well.
Contact Us Test Cases Captcha field.
- Check if the system accepts a valid captcha.
- Check if the system rejects the invalid captcha.
- Check if the captcha code resets as the system reloads.
- Check if the captcha changes as the user enters the wrong value.
Test Cases For Submit button
- Check if the spelling and position of the button are correct.
- Check if the button is clickable.
- When submitting a valid form, the value gets saved, and the administrator receives the same.
- Check if the administrator receives the contact form at the email address that has been configured.
We tried to cover more possible test cases in this test case for the contact details page. You can follow the link if you want more examples of test cases. But if you find any missing test scenarios, you can update us by commenting in the comment section.