Jump to content

Basis path testing

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 49.204.162.212 (talk) at 09:32, 7 May 2014 (See also). 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 possible linearly independent path of execution at least once. A linearly independent path is a sequence of commands without possible branch points. A branch point exists if a conditional permits alternative execution paths depending on the outcome of a logical test.

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

model V(G)= Edges-Nodes+2p;

For Loops V=Edges-nodes+2

wehere P= no.of un connected parts of the graphs

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.