Positive Testing & Negative Testing with Examples


Software Testing is basically a process of testing the functionality of software to find defect as well as testing the software to verify whether the application developed does not deviates from the requirement 

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.
In the above-mentioned cases system should not show any error and the system should accept this value.

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.
In the above-mentioned cases, the application should not accept this value or the application should through an error.

Conclusion: Use both positive and negative testing to verify quality product is delivered to users.

Comments

Popular posts from this blog

Creating Effective Test Cases for Online Ticket Booking Systems

What is Derived Model?

Test Cases and Test scenarios: Definition, Examples, Template