What Is Control Flow Testing?
by Nataliia Vasylyna | March 7, 2016 3:27 pm
During manual testing or automated testing, the appropriate testing tools and techniques should be chosen.
QA specialists perform control flow testing to check system modules. It is a kind of static software testing. Its procedure requires the applying of control flow graphs.
The code modules are represented in a form of graphs which consist of several elements. A tester analyzes the graphs and the paths between them and creates test cases. The tests cover different levels. In the context of control flow testing, ‘coverage’ is regarded as proportion of tested code to non-tested one.
What Are Test Levels of Coverage?
- 100% statement coverage. It is the lowest level. Every statement of every module is under test. It is rather difficult to create graph and then to realize the paths within this level of coverage. A tester may use Holodeck to emulate the system environment.
- 100% decision coverage/branch coverage. Test cases are written for every decision with a true or false outcome.
- 100% multiple condition coverage.
- 100% path coverage. It can be reached if the system has no loops. It is the highest level. If there is a loop, then several test cases should be created to check the loop zero times, one time, n times (n – typical loop value) and maximum number of times.
The control flow checking principle applied during mobile testing or web application testing helps the specialists to discover more bugs and understand the system functionality better.
- manual testing: http://qatestlab.com/services/We-Are-Professionals-in/manual-testing/
- mobile testing: http://mobile.qatestlab.com/
- web application testing: http://qatestlab.com/expertise/types-of-applications/web-application-testing/
Source URL: https://blog.qatestlab.com/2016/03/07/control-flow-testing/
Copyright ©2019 QATestLab Blog