WHITE BOX TESTING
AYUSH AGARWAL
B.TECH (CSE)-V
What is White Box Testing…
• Testing of a software solution's internal coding and infrastructure.
• Clear Box testing, Open Box testing, Structural testing, Transparent
Box testing, Code-Based testing, and Glass Box testing.
• See-through box concept.
It is used for...
• Internal security holes
• Broken or poorly structured paths in the coding processes
• The flow of specific inputs through the code
• Expected output
• The functionality of conditional loops
• Testing of each statement, object and function on an individual basis
How it is done…
• Step 1) Understand The Source Code
o Very knowledgeable of the programming language
o Highly aware of secure coding practices
• Step 2) Create Test Cases And Execute
o Develop little tests for each process or series of processes in the application
o Manual Testing, trial and error testing and the use of testing tools
Testing Techniques…
• Statement Testing: This technique requires every possible
statement in the code to be tested at least once during
the testing process.
• Branch Testing: This technique checks every possible path of a
software application.
• Condition Coverage, Multiple Condition Coverage, Path Coverage,
Function Coverage etc.
Types…
• Unit Testing:
• First type of testing
• Performed on each unit or block of code
• Done by programmer
• Testing for memory leaks:
• Essential in slow running software application
• Tools like RationalPurify for windows
Advantages…
• White box tests cases can be easily automated.
• Testing is more thorough as all code paths are usually covered.
• Testing can start early in SDLC even if GUI is not available.
Disadvantages…
• Complex and expensive.
• Requires professional resources, with a detailed understanding of
programming and implementation.
• Time-consuming, bigger programming applications take the time to
test fully.
THANK YOU

White box testing

  • 1.
    WHITE BOX TESTING AYUSHAGARWAL B.TECH (CSE)-V
  • 2.
    What is WhiteBox Testing… • Testing of a software solution's internal coding and infrastructure. • Clear Box testing, Open Box testing, Structural testing, Transparent Box testing, Code-Based testing, and Glass Box testing. • See-through box concept.
  • 3.
    It is usedfor... • Internal security holes • Broken or poorly structured paths in the coding processes • The flow of specific inputs through the code • Expected output • The functionality of conditional loops • Testing of each statement, object and function on an individual basis
  • 4.
    How it isdone… • Step 1) Understand The Source Code o Very knowledgeable of the programming language o Highly aware of secure coding practices • Step 2) Create Test Cases And Execute o Develop little tests for each process or series of processes in the application o Manual Testing, trial and error testing and the use of testing tools
  • 5.
    Testing Techniques… • StatementTesting: This technique requires every possible statement in the code to be tested at least once during the testing process. • Branch Testing: This technique checks every possible path of a software application. • Condition Coverage, Multiple Condition Coverage, Path Coverage, Function Coverage etc.
  • 6.
    Types… • Unit Testing: •First type of testing • Performed on each unit or block of code • Done by programmer • Testing for memory leaks: • Essential in slow running software application • Tools like RationalPurify for windows
  • 7.
    Advantages… • White boxtests cases can be easily automated. • Testing is more thorough as all code paths are usually covered. • Testing can start early in SDLC even if GUI is not available. Disadvantages… • Complex and expensive. • Requires professional resources, with a detailed understanding of programming and implementation. • Time-consuming, bigger programming applications take the time to test fully.
  • 8.