. Black box testing is the Software testing method which is used to test the software without knowing the internal structure of code or program.
Its examines the functionality of an application based on the specifications. It is also known as Specifications based testing. Independent Testing Team usually performs this type of testing during the software testing life cycle.
Definition by ISTQB
- black box testing: Testing, either functional or non-funonctial, without reference to the internal structure of the component or system.
There are four specification-based or black-box technique:
- Equivalence partitioning
- Boundary value analysis
- Decision tables
- State transition testing
BLACK BOX TESTING ADVANTAGES
- Tests are done from a user’s point of view and will help in exposing discrepancies in the specifications.
- Tester need not know programming languages or how the software has been implemented.
- Tests can be conducted by a body independent from the developers, allowing for an objective perspective and the avoidance of developer-bias.
- Test cases can be designed as soon as the specifications are complete.
BLACK BOX TESTING DISADVANTAGES
- Only a small number of possible inputs can be tested and many program paths will be left untested.
- Without clear specifications, which is the situation in many projects, test cases will be difficult to design.
- Tests can be redundant if the software designer/ developer has already run a test case.
- Ever wondered why a soothsayer closes the eyes when foretelling events? So is almost the case in Black Box Testing.