简体   繁体   中英

Generate all transition of finite state machine from SCXML file

我已经用SCXML实现了状态机,我需要知道如何从头到尾进行所有转换,以便为状态机做测试用例

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM