开发者

Traverse all transitions in a state machine

I need some help in traversing all transitions in a state machine. (all-transitions is a coverage criteria) I have a state machine and I want to cover all transition开发者_运维百科s with minimum number of paths from source to target/abort state. ex: A->B B->B B->C B->D so paths are: A->B->B->C, A->B->D


Just write some test code to invoke your state machine:

  1. Two calls where you expect to end with state C.
  2. Two calls where you expect to end with state D.

Your test code should verify the end state.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜