Strategies for a successful test
MBTsuite offers the following strategies for the creation of test cases:
- Full Path Coverage
Creates all possible paths in a diagram from starting to ending point.
- Full Edge Coverage
Generates test cases in which each transition occurs at least once.
- Full Node Coverage
Generates test cases in which each node occurs at least once.
- Random
Generates test cases randomly from a diagram until the defined number of test cases has been reached.
- Named Path
Defines a path on which the diagram must be traversed.
- Guided Path
Test cases to be generated are defined using a tag system.
- Shortest Path
Generates the shortest path trough a diagram depending on a given weight type (Cost, duration or number of test steps)
Filters
Creation of test cases, especially for huge models, can lead to exponential growth in test cases - the so-called "test case explosion". MBTsuite offers a variety of filters to counter this problem. The number of test cases can be reduced by applying the following criteria:
Coverage Filters
Coverage filters create a minimum number of test cases of the given TCT/SVS, covering all related items at least once. The following coverage filters are available:
- Node Coverage
Create a minimum number of test cases which cover all nodes (activities/actions or states) at least once.
- Edge Coverage
Create a minimum number of test cases which cover all edges (control flows and transitions) at least once.
- Test Step/Verification Point Coverage
Create a minimum number of test cases which cover all nodes/edges which are classified as test steps/verification points at least once.
- Requirements Coverage
Create a minimum number of test cases which cover the selected requirements at least once.
Range filters
Range filters create a minimum subset of test cases where the filter criterion summed up over each test case meets a specified range. The following range filters are available:
- Cost filter
Creates a minimum number of test cases where the sum of cost values summed up over all test case elements meets the specified range.
- Duration filter
Creates a minimum number of test cases where the sum of duration values summed up over all test case elements meets the specified range.
- Length filter
Creates a minimum number of test cases where the length of a test case meets the specified range.