Generate all transition of finite state machine from SCXML file

246 views Asked by At

I've state machine implemented with SCXML and i need to know how can i get all transitions from start to end in order to make test cases for the state machine

1

There are 1 answers

1
jbeard4 On

Because SCXML is just XML, you can query it using xpath. For example, you can find all transitions using the following xpath query: //transition

You can find an example of how to use xpath in Java here: https://www.journaldev.com/1194/java-xpath-example-tutorial