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
Asked
Active
Viewed 178 times
1 Answers
0
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

jbeard4
- 12,664
- 4
- 57
- 67
-
Thanks , i'll check xpath – Mohamed SHARAF Jan 23 '19 at 12:02