Positive Testing - testing the system by giving the valid
data.
Negative Testing - testing the system by giving the Invalid
data.
For Ex,an application contains a textbox and as per the
user's Requirements the textbox should accept only
Strings.By providing only String as input data to the
textbox & to check whether its working properly or not
means it is Positive Testing.
If giving the input other than String means it is negative
Testing..
positive test case: system reacts when giving the input
that should be user or s/w requrements.
-ve: by i/p that should be abnormal or independent of the
s/w req. in this condition how the system will behave.
Testing aimed at showing software works. Also known as "test
to pass". See also Negative Testing.
Testing aimed at showing software does not work. Also known
as "test to fail". See also Positive Testing.
Negative Testing : Testing done to check for data base
updation is an example.Here you are going to check wether
the count in the data base has increased/not.if it is
increased the test case fails as there will be deviation in
the count.
Positive Testing: Usual testing done to check the
Functionality of the application Or any GUI testing based
upon the USE Cases generated
positive testing is nothing but an testing the build by
giving the valid input data.which yeilds all passed
results.this testing is done with the intention of test
shuld be passed.
negitive testing is nothing but testing the bulid by giving
the invalid input data.which yeilds all negative
results.this testing is done with the intention of test
shuld be failed.
as Helios & Matheson has given the example u can cosider
that example itself.
All of you need to educate yourself. Whenever you answer a
question in interview, make sure you leave no room for
further question being asked due to weak answer. Make sure
you use the appropriate testing terminology to reflect good
answer.
Postive testing is about validating the feature with right
input data so that it could be verified that functionality
works and behaves as per the requirement and need of the
user. (equivalence partitioning)
Negative testing is about:
1. validating the feature on the negative input data where
it shows error message or prompts for the right input etc.
(equivalence partitioning)
2. Breaking the feature by going beyond its negative
validation limit. (this is identified thru Boundary value
which has upper edge on the equivalence partitioning, means
BVA improves the EP)
Note: Both Positive and negative testing helps us find bugs.
The right terminology used for valid and invalid input is
Equivalence partitioning as well as Boundary value
analysis. The positive and negative testing is a straight
influence from these. Once these concepts are clear then
only you can perform the testing. I know that these to
techniques help you to prepare test cases with maximum
coverage of functionality testing which covers positive and
negative test conditions but its obvious that these are the
foundation of positive and negative testing. There is no
limit to perform negative testing but these two techniques
also helps us to define a specific range within which we
use some set of inputs to test the functionality. Postive
is something which you can test within a range but negative
is mostly limitless.
Apart from this Error guessing is also a very good way to
perform the testing. where a tester uses his skills of
sniffing for functionality failure (again a negative
testing), experience to find the bugs, adhoc testing to
find bugs etc.
Cheers
Harry
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.