what is positive and negative testing explian with example?

Answer Posted / cody

Positive - Checking whether the application works according
to documentation or not.

Negative - Checking whether the application does what it
should not and does not when it should.

Positive and Negative Testing is a concept. Meaning this is
a way of thinking. They should not be associated with a
specific testing technique like equivalence partitioning.
They can be used within the technique but do not replace
the technique.

Requirement:
Employee can be contacted at work from 7:30am - 5:00pm

Let's use a truth table:
Start End Test Result
Test 1 - - -
Test 2 - + -
Test 3 + - -
Test 4 + + +

Test 1:
Start - Contact Employee at 7:29am (-)
End - Contact Employee at 5:01pm (-)

Test 2:
Start - Contact Employee at 7:28am (-)
End - Contact Employee at 4:59pm (+)

Test 3:
Start - Contact Employee at 7:30am (+)
End - Contact Employee at 5:02pm (-)

Test 4:
Start - Contact Employee at 7:31am (+)
End - Contact Employee at 5:00pm (+)

I have already identified which tests are negative using
the truth table. Only test 4 is a positive test. Why? Test
4 is the only test that has valid inputs verifying the
requirement is fulfilled. The other tests are derived from
the requirement but are invalid inputs.

Feel free to e-mail me any feedback.

Is This Answer Correct ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you test a web application for dump and deaf??

1598


how to explain banking domain project in testing?

10299


*) Internal review defect gets detected… 1) During peer review. 2) By the own stuff member onsite/offshore. 3) During Informal review process. 4) None of these 5) All of these

1849


Explain the procedure & path of s/w in testing?

1545


Explain crud testing.

649






Can anyone please tell in detail about the Rally tool and how a tester is going to use it.

2069


tell me some major and minor defects in ur net banking project?

3163


Have you prepared traceability matrix and how to prepare it?

1601


what is agile model and spiral maodel?pls explain with an example?

2150


what is the difference between Risk based and Requirement based testing???

1715


Why performance testing is performed? What are tools of performance testing?

720


What is Difference between Test Strategy and Test Methodology?

1735


What is software review?

808


What is common interface?

1521


When new application ready to test than whats your testing strategies?

1248