...
Another common use of state variables is to parameterize or influence selection of paths in a (very generic) sub diagram. This practice can easily backfire and create situations where it will never be possible to reach 100% coverage with default target settings, e.g., by calling a subactivity diagram with the state variable always and only set to one value and the sub activity having flows covering multiple settings. Note that expert users can remedy this situation by manually setting all the test targets related to sub activity diagram in Test Targets view of the Conformiq Test Generation perspective to “DON’T_CARE” (see “Review Testing Target Settings before Analyzing Your Model”).
Recommendation: Avoid use of state variables to select a subset of different flows in a sub activity diagram. Simplify you model for easing especially review with others: instead of using a state variable with a generic activity diagram, split this generic activity diagram into one activity diagram per case and eliminate state variable that is used. |
...