How can we test status transitions in a spel code? can anyone give me some idea or example code?
there is out-of-the-box Action Macros with status change code (search for "status" in macro area), they can be used for objects that are in Edit mode (checked out), using Attached Events for example.
If you want to call status change method for 3rd party object of frg script you need to use change_status method then, example could be found here (line 65): https://communities.ca.com/message/242040691-re-close-bulk-tickets-with-comments-in-ca-service-desk-r127?commentID=24204…
Oh, if you're talking about Condtion Macros within Status Transition, you can try to check them using excute:
Check condition macro via spel
Retrieving data ...