White Box & Black Box
Testing
Presented By:
Nitish Mhaske
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.
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
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
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...
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
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.
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..
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
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
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
Disadvantage of Unit Testing
 Unit-testing will not catch every error in the program.
 It only tests the functionality of the units….
Thank You…

White box & Black box testing

  • 1.
    White Box &Black Box Testing Presented By: Nitish Mhaske
  • 2.
    What is WhiteBox 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 encountera 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 WhiteboxTesting  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 WhiteboxTesting  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 BlackboxTesting?  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 BlackboxTesting  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 BlackboxTesting  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  Unittesting 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 UnitTesting  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 UnitTesting  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 UnitTesting  Unit-testing will not catch every error in the program.  It only tests the functionality of the units….
  • 13.