White Box Testing





Definition – What is White Box Testing ?

White box testing is the testing of infrastructure and internal coding of a software application.
It focuses on the flow of outputs and inputs through the design, usability and application. Main motive is strengthening security..
White box testing is also recognized as structural, clear, open and glass box testing.

White box testing is depended on the inner working function of any software application and rotates around inside testing. The expression whitebox was used due to see-from side to side box theory.

What do you verify in White Box Testing?

i.                    Inner security holes
ii.                  Poorly structured or Broken coding standard
iii.                Confirm the flow of output and inputs by the coding structure
iv.                Output expectation
v.                  Conditional loops functionality
vi.                Testing of function, object and statement on the basis of individual

This testing need to perform on the unit, integration and system level of software development. Basic motive of this testing is to verify the working flow for a software application.

How you can perform White Box Testing?
There are two basic steps which are used in white box testing technique:

Step1- UNDERSTAND THE SOURCE CODE
First step is that Tester need to understand the source code and its flow, because without knowing this, Tester never can verify the code functionality and standards.

Step2 – CREATE TEST CASES AND EXECUTE
After understanding the source code, now tester will create the test cases and execute these. Requirement for White Box testing are Tester need the knowledge of source code there fore it’s done by the software engineers.

White Box Testing Techniques
Code Coverage Analysis is the main White Box Testing technique. It eliminates the difference in between the test case suites. First it identifies the scope of software application which is remained in test cases. Once these gaps are recognized, we will create test cases or suits to test the untested parts of code. This will definitely increased the quality of software product.

Following are the main coverage analysis techniques:

Statement Coverage: This technique will cover all maximum statement or scope of software application for testing. All code should be tested at least once during this verification process.

Branch Coverage – This technique verify all possible conditions (i.e. if-else and other loops of conditional) of a software application

Except from the mentioned above some separate coverage types like function coverage, path coverage, multiple condition coverage etc. each of these have their own merits and attempts to cover all case of programming code.


Types of White Box Testing

Unit Testing: First as other we test the code for software unit to confirm the unit input and output flow of data.
Memory Leaks Testing: Memory leaks are due to slow motion of soft wares.
Penetration Testing by White Box: In this type tester have full knowledge source code and test the software from every angle.
Mutation Testing by White Box: This is for enhancement of the coding  standard, which can expand the software application.
Real world scenario for white box testing, Definition, verification, how we perform,  What is White Box Testing, techniques and types of white box testing, structural, clear, open and glass box testing, Code Coverage, Statement, Branch Analysis, Memory Leaks, Penetration, Mutation Testing


No comments:

Post a Comment

Popular Posts