Jump to content

Basis path testing

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 14.139.180.97 (talk) at 03:54, 19 September 2013. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Basis path testing, or structured testing, is a method for designing test cases intended to examine each mathematically possible path of execution at least once. By creating a set of basis paths, creating and executing tests for these paths, 100% statement and 100% branch coverage can be guaranteed.

See also

Basis path testing is a white box testing technique that is used to test the code based on control flow. The method uses a control flowchart and a control flow graph to convert the code into a model and then derive independent test paths from it.

Each test path corresponds to one possible execution in the software. These test paths are then used to generate test cases. The test cases are then used to verify the code for its correctness.