- > Testing Mandatory / Required fields – As part of Negative Testing, we intentionally don’t enter data into the Mandatory / Required fields and submit/save the form to check whether the application is giving a proper error message stating “These fields cannot be empty”.
- > Testing Specific Data Type fields – As part of Negative Testing, we intentionally enter invalid type data into the fields. For example, if a text box fields accept Numerical values only, we perform Negative Testing on this text box field by intentionally providing Characters, Symbols to check whether the application is giving a proper error message stating “These fields can accept numerical values only”.
- > Testing fields having the limitation on size – As part of Negative Testing, we intentionally enter more characters into the text box fields for which the limitation is set to enter only a few characters. Let’s say if a text box is allowed to intake 5 characters, we perform Negative Testing by entering more than 5 characters to verify whether the application is not allowing the user to enter more than 5 characters.
- > Testing fields allowing a range of values – As part of Negative Testing, we intentionally enter a value into the fields which are out of range for the field to accept. Lets say if a text box is allowing to enter the age of the person from 18 to 44, we perform Negative Testing by entering an age value which is less than 18 or more than 44, to verify the application is giving proper error message stating “This field only accepts the age of 18 to 43”.
- > And many more.
- > It is a good process to combine both Positive and Negative Testing strategies.
- > The whole purpose of Negative Testing is to verify whether the application is able to handle the invalid data properly
- > By performing Negative Testing, the quality of the application can be improved and confidence can be built on the application.
- > Negative Testing increases the test coverage and helps in making the application more stable and reliable.
- > There is no limit for creating Negative Tests and out of the box thinking plays a major role in creating a good number of Negatives Tests.
Conclusion: Negative Testing is an important process in Software Testing, where the testing is performed by providing invalid inputs to verify whether the application is able to handle invalid inputs properly.
- > To learn more about Software Testing, continue to the next post (Click on the Next Post link below)
- > Check complete Software Testing Tutorial Contents here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning ?