Black Box Testing
Black Box Testing
Black Box Testing
Techniques
Dr.B.Sathis Kumar
Black box testing strategies
1) Functional Testing
This type deals with the functional requirements
or specifications of an application. Here, different
actions or functions of the system are being tested
by providing the input and comparing the actual
output with the expected output.
• For Example, when we test a Dropdown list, we
click on it and verify that it expands and all the
expected values are showing in the list.
Few major types of Functional Testing are:
• Smoke Testing
• Sanity Testing
• Integration Testing
• System Testing
• Regression Testing
• User Acceptance Testing
2) Non-Functional Testing
Valid Invalid
Equivalence Partitioning
? ?
A integer N such that:
-99 <= N <= 99
? ?
Phone Number
Area code: [200, 999]
Prefix: (200, 999]
Suffix: Any 4 digits
Equivalence Partitioning - examples
?
A integer N such that: [-99, -10]
-99 <= N <= 99 [-9, -1]
0
[1, 9]
[10, 99]
? ?
Phone Number
Area code: [200, 999]
Prefix: (200, 999]
Suffix: Any 4 digits
Equivalence Partitioning - examples
Situation:
• The “Print message” is software that read two characters and,
depending on their values, messages must be printed.
• The first character must be an “A” or a “B”.
• The second character must be a digit.
• If the first character is an “A” or “B” and the second character is
a digit, the file must be updated.
• If the first character is incorrect (not an “A” or “B”), the
message X must be printed.
• If the second character is incorrect (not a digit), the message Y
must be printed.
• Solution:
• The causes for this situation are:
C1 – First character is A
C2 – First character is B
C3 – the Second character is a digit
• The effects (results) for this situation are
E1 – Update the file
E2 – Print message “X”
E3 – Print message “Y”
LET’S START!!