5 - Orthogonal Array Testing-and-Positive Negative Testing
5 - Orthogonal Array Testing-and-Positive Negative Testing
3 BR-03 Only key number 123-456 can be used to lock and unlock H
6 BR-06 The lock must not open even when it is hit with a heavy object M
7 BR-07 The lock and key must be made of metal and must weigh L
approximately 150 grams
1. Positive Testing means testing the 1. Negative Testing means testing the
application or system by giving valid data. application or system by giving invalid
data.
2. In this testing tester always check for 2. In this testing tester always check for
only valid set of values. only invalid set of values.
3. Positive Testing is done by keeping 3. Negative Testing is done by keeping
positive point of view for example negative point of view for example
checking the mobile number field by checking the mobile number field by
giving numbers only like 9999999999. giving numbers and alphabets like
99999abcde.
4. It is always done to verify the known 4. It is always done to break the project
set of Test Conditions. and product with unknown set of Test
Conditions.
5. This Testing checks how the product 5. This Testing covers those scenarios for
and project behave by providing valid set which the product is not designed and
of data. coded by providing invalid set of data.
6. Main aim means purpose of this Testing 6. Main aim means purpose of this Testing
is to prove that the project and product is try to break the application or system
works as per the requirements and by providing invalid set of data.
specifications.
7. This type of Testing always tries to 7. Negative Testing is that in which tester
prove that a given product and project attempts to prove that the given product
always meets the requirements and and project does, which is not said in the
specifications of a client and customer. client and customer requirements.
ERROR GUESSING
• Error guessing is the preferred method used when
all other methods fail.
• Sometimes error guessing is used to test some
special cases.
• Error guessing is a very practical case wherein the
tester uses his intuition, experience, knowledge of
project, bug history and makes a guess about where
the bug can be.
• Basic idea is to make a list of possible errors in error
prone situations and then develop the test cases.
• No general procedure for this tech exists. It is an
adhoc process.
Example - Special cases in the roots
of a quadratic equation
What will happen when a=0 in the
quadratic equation?
- Though, we do consider this case,
there are chances that we may overlook
it while testing, as it has two cases:
i) If a=0 then the equation is no longer
quadratic.
ii) For calculation of roots, the division
is by zero. So, we may overlook.
What will happen when all the inputs are
negative?
What will happen when the inputs list is
empty?
Summary
Discussed Orthogonal Array Testing.
Explained Positive and Negative Testing with suitable
examples.
Presented Error Guessing.
48
References
1. Naresh Chauhan, Software Testing: Principles and
Practices, (Chapter – 4), Second Edition, Oxford
University Press, 2016.
Thank you