What is White Box testing?
White box testing strategy deals with the internal logic and structure
of the code. White box testing is also called as glass, structural, open box or
clear box testing. The tests written based on the white box testing strategy
incorporate coverage of the code written, branches, paths, statements and
internal logic of the code etc.
In order to implement white box testing, the tester has to deal with
the code and hence is needed to possess knowledge of coding and logic i.e.
internal working of the code. White box test also needs the
Tester to look into the code and find out which unit/statement/chunk
of the code is malfunctioning.
Unit Testing
Testing of Individual Unit
(E.g. : Function, Program, Module)
1. Also referred to as White
Box Testing
2. Typically performed by the
Developer
3. Goal of Unit testing is to
uncover defects using formal techniques like:
- Resource-behavior (e.g. memory leaks), performance or robustness testing, as well as structural testing
- Defects and deviations in Date formats
- Special requirements in input conditions (for example Text box where only numeric or alphabets should be entered)
- Selection based on Combo Box’s, List Box’s, Option buttons, Check Box’s
- Testing occurs with access to the code being tested, with the support of the development environment, such as a unit test framework or debugging tool.
4. The testing must ensure:
- Statement Coverage
- Branch Coverage
- Condition Coverage
- Exceptional Conditions Coverage
5. Tools that can be used:
- Junit, JTest Case, Cactus, Jindent, Rational Quantifier, Rational Purifier
Who is responsible for white box
testing?
It depends on the process and the associated stakeholders of the
project(s). In the IT
Industry, large companies have a team with responsibilities to
evaluate the developed software in the context of the given requirements. Moreover,
developers also conduct testing which is called Unit Testing. In most cases,
following professionals are involved in testing of a system within their
respective capacities:
- Software Tester
- Software Developer
Different companies have different designations for
people who test the software on the basis of their experience
and knowledge such as Software Tester, Software Quality Assurance
Engineer, and QA Analyst etc.
You may also like:
Complete Testing Material
Testing basic interview questions
No comments:
Post a Comment