Positive Testing & Negative Testing with Examples
What is positive testing?
1)In positive testing, we provide valid values as inputs and test the application.
2)Positive testing is used to check whether an application is behaving properly when positive data is entered in the application.
Positive test cases for amount field which should accept only numeric value:
- Test by entering the amount less than 1000.
- Test by entering the amount equal to 1000.
- Test by giving inputs as a numeric value in the amount field.
What is negative testing?
1)In negative testing, we give invalid values as inputs and test the application.
2)Negative testing is used to verify whether an application is behaving properly when negative data is entered in the application.
Negative test cases for amount field:
- Test by entering alphabets in the amount field.
- Test by entering special characters in the amount field.
- Test entering minus values in the amount field.
- Test by leaving the amount field blank and click on proceed.
Conclusion: Use both positive and negative testing to verify quality product is delivered to users.
Also Read : Performance Testing
Comments
Post a Comment