1. White Box & Black Box
Testing
Presented By:
Nitish Mhaske
2. What is White Box Testing ?
Testing internal coding and infrastructure
Identify which line of code is actually executed and which is not,
which may indicate that there is either missing logic or a typo.
Internal Structure known in addition to i/o & Relationships.
Often used for verification.
Done by the Developers.
Structure-based / Glass-box testing
Called Because here the testers require knowledge of how the
software is implemented.
3. How to encounter a bug in white box
testing?
It involves testing a series of predefined inputs against expected outputs ,
so when a specific input does not result in the expected output, you have
encountered a bug
4. Advantage of Whitebox Testing
Testing can be commenced at an earlier stage.
One need not wait for the GUI to be available.
Testing is more thorough, with the possibility of covering most paths.
The other advantage of white box testing is that it helps in optimizing
the code
5. Disadvantage of Whitebox Testing
As knowledge of code and internal structure is a prerequisite.
A skilled tester is needed to carry out this type of testing, which
increases the cost
Not looking at the code in a runtime environment...
6. What is Blackbox Testing?
Blackbox Testing is a software testing
method in which the internal structure
of the item being tested is not known
to the tester..
Blackbox testing is often used for
Validation..
Black box testing is done by the
professional testing team.
Type
1. Functional
2. Non Functional
3. Reg Test
7. Advantage of Blackbox Testing
Tester can be non-technical.
Tester needs no knowledge of implementation, including specific
programming languages
Tests will be done from an end user's point of view. Because end user
should accept the system.
8. Disadvantage of Blackbox Testing
Not all properties of a software product can be tested
The reason for a failure is not found.
Only a small number of possible inputs can be tested and many
program paths will be left untested..
9. Unit Testing
Unit testing is that validate individual unit of source code working
properly…
Unit is smallest testable part of an application..
Mostly done by developers of the modules..
Done after Code compilation
10. Goal of Unit Testing
To isolate each part of program and show that individual parts are
correct..
Typically Written & run by s/w developer to ensure design &
behaviour
11. Advantage of Unit Testing
Reduces the level of bugs in production code..
Unit Testing inspires confidence..
Makes easier to change and refactor code.
Concern with the correctness & Completeness
Isolate each part
Check conditional logic
Check for wiring bugs
12. Disadvantage of Unit Testing
Unit-testing will not catch every error in the program.
It only tests the functionality of the units….