Thus, basis path testing analyzes the control flow graph of the program and uses McCabe Cyclomatic complexity to determine the number of independent paths to generate test cases for each path. White box testing can be applied at the unit integration and test procedure attempts to execute every part of the source code using the test data. It guarantees complete branch coverage (all control flow graphs’ edges), but without covering all possible control flow graphs. The objective of path testing is design path generating of program under test. What is tested in Loop Testing? This is a coverage based testing and tries to use the minimum number of test cases while executing the basis path. The other names of glass box testing are clear box testing, open box testing, logic driven testing or path driven testing or structural testing.

Link Coverage: Achieved when the paths identified have a test that goes along every link, or line, in the graph. By going through the loop once, the uninitialized variables in the loop can be determined. PathCrawler can generate test cases satisfying the all-paths and loop count-k criteria [3]. Here, it is also checked that while following any of the independent paths , the software is able to reach a destination or a correct, consistent and atomic output. White box testing is a testing technique, that examines the program structure and derives test data from the program logic/code. Testing can also fix loop repetition issues. Path testing is strongest code coverage in white box testing techniques. coverage, all-edges coverage, basis path coverage, and decision-decision-path testing. 7. Basis Path Testing Theoretical Computer Science Areas. 1.1.3 Grey Box Testing

Loops can also reveal capacity/performance bottlenecks. Loops Testing reveals loops initialization problems. criteria is defined using segment coverage, branch coverage, path testing, data flow testing, path testing and loop testing. However, testing all paths does not mean that will find all defects in a program especially loop structure program problem. Path Coverage (cont’d) •Various strategies have been developed for identifying useful subsets of paths for testing when Path Coverage is impractical: –Loop Coverage, –Basis Paths Coverage, and –Dataflow Coverage (Lecture 8). “Basis path” testing selects paths that achieve decision coverage. Selective Testing 23 Basis Set • of execution paths = set of paths that will execute all statements and all conditions in a program at least once • defines the number of independent paths in the basis set • Goal: Define test cases for basis set • Basis path testing • Condition testing • Loop testing • Dataflow testing loop …

Loop Coverage: Achieved when the numerous paths identified have tests that explores the interaction between sub-paths within a loop. The basis path se- lection algorithm introduced in this paper, with proper modifications and improvements, can also be used to generate basis paths based on PathCrawler. In many cases, node coverage will take care of this. Path Testing Techniques: Independent (basis) paths - Independent path is a path through a DD-path graph which cannot be reproduced from other paths by other methods., Route updates don’t arrive Probing with test packets. Advantages : Simplicity without the problems of statement coverage. PPT Chapter 9 Path Testing PowerPoint Presentation - ID.