In: Computer Science
white box testing -- what is one effective way to do white box testing?
C++
If you find this answer helpful plz upvote.
White box testing - white box testing is a method of software testing. it is used to test internal structure. It evaluates all logical decisions and find whether they are true or false. It evaluates all loops to check their boundaries.white box testing checks the internal functioning of the system. In this method, testing is based on codes, statements, branches, paths and conditions. It is also known as clear testing or transparent testing. A tester is usually a developer. The main objective of white tex testing is used to check the quality of code.
One of the best effective way to do white box testing - -
-First you have to identify particular component to be tested.
-Now you must Draw a flow graph and draw paths.
- evaluate possible paths from flowgraph.
- use and write test cases.
-At last execute.
Important Techniques used in white box testing-
Statement coverage- it is used to cover 100% statement coverage of the code it means while testing every possible statement in the code is executed atleast once.
Decision coverage- it is used to cover 100% decision coverage of the code it means while testing every possible decision condition like if else, for loop and other conditional statement is executed atleast once.
Condition coverage- it is used to cover 100% condition coverage of code, it means while testing every possible conditions in code is executed at least once.
Decision/condition coverage- it is a mixed type of white box testing technique try to cover 100% decision /condition coverage of code. It means while testing every possible decision /conditions in code is executed atleast once.
Multiple condition coverage - all conditions tested at least once.