contol flow and formatting of the day test
Answers
Control flow testing is a type of software testing that uses program’s control flow as a model. Control flow testing is a structural testing strategy. This testing technique comes under white box testing. For the type of control flow testing, all the structure, design, code and implementation of the software should be known to the testing team.
This type of testing method is often used by developers to test their own code and own implementation as the design, code and the implementation is better known to the developers. This testing method is implemented with the intention to test the logic of the code so that the user requirements can be fulfilled. Its main application is to relate the small programs and segments of the larger programs.
▪︎Control Flow Graph Creation:
From the given source code a control flow graph is created either manually or by using the software.
▪︎Coverage Target:
A coverage target is defined over the control flow graph that includes nodes, edges, paths, branches etc.
▪︎Test Case Creation:
Test cases are created using control flow graphs to cover the defined coverage target.
▪︎Test Case Execution:
After the creation of test cases over coverage target, further test cases are executed.
Analysis:
Analyze the result and find out whether the program is error free or has some defects
Answer:
Control Flow Testing
Control flow testing is a testing technique that comes under white box testing. The aim of this technique is to determine the execution order of statements or instructions of the program through a control structure. The control structure of a program is used to develop a test case for the program. In this technique, a particular part of a large program is selected by the tester to set the testing path. It is mostly used in unit testing. Test cases represented by the control graph of the program.
Control Flow Graph is formed from the node, edge, decision node, junction node to specify all possible execution path.