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

For any web application, what are the possible login features that should be tested?

1063


What is checkpoint? How can you handle the checkpoints?

2235


Can you explain v model in manual testing?

936


What are the different levels of manual testing?

934


Define what is a critical bug.

955


Anyone attended the manual testing interview with L&T infotech in recent past. please let me know the type of questions they can ask especially in PM round. Thanks

10672


What do you like about computers?

2038


What is the quality process is following in your organization.

2011


what is mean by Performance Related Testing in data base?

1958


what types of bugs will we find out in banking projects

2054


What is known as data-driven testing?

838


How we allocate the priority(Blocker, Critical, etc.,) in Testing?

1611


How to validate a Testcase.and is the testing Methodology.

2120


1.what promted you to become involved in QA/Testing?

1989


About Hierarchy level in your company.

1875