0
1.1kviews
Describe positive testing & negative testing. Also write test cases for them.
1 Answer
0
1views
  • Software testing is process of Verification and Validation to check whether software application under test is working as expected.

  • To test the application we need to give some input and check if getting result as per mentioned in the requirements or not.

  • This testing activity is carried out to find the defects in the code & improve the quality of software application. Testing of application can be carried out in two different ways, Positive testing and Negative testing.

Positive Testing:

  • Positive Testing is testing process where the system validated against the valid input data. In this testing tester always check for only valid set of values and check if a application behaves as expected with its expected inputs.

  • The main intention of this testing is to check whether software application not showing error when not supposed to & showing error when supposed to.

  • Such testing is to be carried out keeping positive point of view & only execute the positive scenario. Positive Testing always tries to prove that a given product and project always meets the requirements and specifications.

  • Under Positive testing is test the normal day to day life scenarios and check the expected behavior of application.

Negative Testing:

  • Negative Testing is testing process where the system validated against the invalid input data. A negative test checks if a application behaves as expected with its negative inputs.

  • The main intention of this testing is to check whether software application not showing error when supposed to & showing error when not supposed to. Such testing is to be carried out keeping negative point of view & only execute the test cases for only invalid set of input data.

  • Negative testing is a testing process to identify the inputs where system is not designed or un-handled inputs by providing different invalid. The main reason behind Negative testing is to check the stability of the software application against the influences of different variety of incorrect validation data set.

Sr. No Test CaseID Test case Objective Prerequisite Steps Input data Expected Result Actual Result Remark
1 TC-1.1 Positive Testing Text box should be presen t and it should accept numeri c values only Enter numb ers/di gits in text box i.e. 123 enter ed 0 , 1 to 9 or com binat ion of thes e num bers Able to take input as numb ers Text box accept s numer ic values Test to pass
2 TC2 .1 Negative Testing Text box should be presen t and it should accept numeri c values only Enter numb ers/di gits in text box i.e. abc enter ed 0 , 1 to 9 or com binat ion of thes e num bers Able to take input as omly nume ric value s Text box accept s all charac ters.. Test to fail

Some more scenarios for testing: Positive Test Scenarios:

  • Password textbox should accept 6 characters

  • Password textbox should up to 20 characters

  • Password textbox should accept any value in between 6-20 char’s length.

  • Password textbox should accept all numeric & alphabets values.

Negative Test scenarios:

  • Password textbox should not accept less than 6 characters

  • Password textbox should not exceeds more than 20 characters

  • Password textbox should not accept special characters.

Please log in to add an answer.