In software testing, Positive Testing and Negative Testing is mainly used for the improve the quality of the software products. So in this article, you will see the definition and difference between the positive vs negative.
Positive Testing : Positive testing is a one kind of the test the happy flow the software product. Positive testing is a type of the testing where assuming that functionality will be worked as expected.
Negative Testing: Negative testing is a one type of the testing where testing the software products by non requirement inputs or test data and observe the behavior of the application.
Difference Between Positive Testing And Negative Testing
Positive Testing | Negative Testing |
Positive testing can be executed by customer’s requirements. | Negative testing can be executed by non-requirements. |
It can not be ensure about the defect free software product. | It cab be sure about the defect free software product. |
In Positive testing, It can not be possible 100% test coverage. | In Negative testing, It can be possible 100% test coverage. |
Positive testing can be done before the negative testing. | Negative testing can be done after the positive testing. |
It takes less time to performed positive testing. | It takes more time to performed negative testing. |
Positive testing can be done by the any people with less knowledge of the testing. | Negative testing can be done by the experienced persons. |
Example of Positive Testing and Negative Testing
Positive Testing | Negative Testing |
Example: Allow only numeric char Bank Account Number: Enter : 1223456777 | Example : Bank Account Number : 1. Check with alpha char – abcdhg 2. Check with special char – !@#$#$ 3. Check with alphanumeric char – assdf!@ 4. Check with special numeric char – 123!@# 5. Check with alphanumeric and special – abc123!@# 6. Check with space only – |
Conclusion :
So In this way, positive and negative test are important to improve software products quality.
1. Static Testing And Dynamic Testing
2. Smoke Testing And Sanity Testing
3. Black Box Testing And White Box Testing
4. Test Cases And Test Scenarios