Professional Documents
Culture Documents
Black Box and Grey Box Testing
Black Box and Grey Box Testing
Amaar Hassan
Black Box Testing
Block-box testing (or functional testing, or behavior testing) focuses on the
functional requirements of the software.
In black-box testing, the system is like a black-box whose behavior can
only be determined by studying its inputs and the related outputs
A set of test cases is derived to exercise all functional requirements for the
program.
These tests are generally derived from the program specification
Black-box testing attempts to find the error in the following categories
Incorrect or missing functions
Interface errors
Error in data structures or external database access
Performance errors
Initialization and termination error
Black Box Testing
Black Box Testing
Equivalence classes
Boundary value analysis
Why testing is hard
Let’s take a trivial example
Test the addition operation on a 32-bit machine
c=a+b
How many tests are needed?
Adder Example
Age Example
Objectives
To check whether the software system is made according to the
customer needs
To check for both functional and non-functional testing
To execute real life scenarios on the software
Acceptance testing
Acceptance testing is testing performed to check the acceptability of
the system.
Acceptance Testing is performed after System Testing and before
making the system available for actual use.
One can perform better testing of mobile if he has a little idea about
its working (OS and Hardware).
Gray Box Testing…Example
Which scenario presents higher probability for a good testing?