Basis path testing explained
In software engineering, basis path testing, or structured testing,[1] is a white box method for designing test cases. The method analyzes the control-flow graph of a program to find a set of linearly independent paths of execution. The method normally uses McCabe cyclomatic complexity to determine the number of linearly independent paths and then generates test cases for each path thus obtained.[2] Basis path testing guarantees complete branch coverage (all edges of the control-flow graph), but achieves that without covering all possible paths of the control-flow graph the latter is usually too costly.[3] Basis path testing has been widely used and studied.[4]
See also
Further reading
- Book: Paul C. Jorgensen. Software Testing: A Craftsman's Approach, Second Edition. 2002. CRC Press. 978-0-8493-0809-3. 146-150.
- Book: Alan Page. Ken Johnston. Bj Rollison. How We Test Software at Microsoft. 2008. Microsoft Press. 978-0-7356-3831-0. chapter 6.
Notes and References
- Web site: Structured Testing: A Testing Methodology Using the Cyclomatic Complexity Metric. Arthur H. Watson and Thomas J. McCabe. 1996. NIST Special Publication 500-235.
- Book: Linda Westfall. The Certified Software Quality Engineer Handbook. 2008. ASQ Quality Press. 978-0-87389-730-3. 436-437.
- Book: Y.N. Srikant. Priti Shankar. The Compiler Design Handbook: Optimizations and Machine Code Generation. 2002. CRC Press. 978-1-4200-4057-9. 249.
- Book: Robert V. Binder. Testing Object-oriented Systems: Models, Patterns, and Tools. 2000. Addison-Wesley Professional. 978-0-201-80938-1. 378. registration.