Google News
logo
Manual Testing - Interview Questions
What is structure-based testing?
Structure-based test design techniques are also referred to as white box testing. In these techniques, the knowledge of code or internal architecture of the system is required to carry out the testing. The various kinds of testing structure-based or white testing techniques are-
 
Statement testing : A white box testing technique in which the test scripts are designed to execute the application’s code statements. Its coverage is measured as the line of code or statements executed by test scripts.
 
Decision testing/branch testing : A testing technique in the test scripts is designed to execute the different decision-branches (e.g. if-else conditions) in the application. Its coverage is measured as the percentage of decision points out of the total decision points in the application.
 
Condition testing : Condition testing is a testing approach in which we test the application with both True and False outcome for each condition. Hence for n conditions, we will have 2n test scripts.
 
Multiple condition testing : In multiple condition testing, the different combinations of condition outcomes are tested at least once. Hence for 100% coverage, we will have 2^n test scripts. This is very exhaustive and very difficult to achieve 100% coverage.
 
Condition determination testing : It is an optimized way of multiple condition testing in which the combinations which don’t affect the outcomes are discarded.
 
Path testing : Testing the independent paths in the system(paths are executable statements from entry to exit points).
Advertisement