Test workflow to run without need to create request item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2020 04:16 PM
I need to test the workflow. I have hardcoded data in runscript to start. Is it possible to test workflow without having to create a catalog item and assign workflow and then create RITM? Appreciate it. If not any shortcuts to test workflow to minimize steps as much as possible.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2020 04:20 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2020 04:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2020 04:32 PM
Giri,
Have you looked into Automated Test Framework yet? if not I would recommend taking a look.
Kind regards
Steve

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2020 04:38 PM
You can use Workflow methods to associate workflow with existing RITM for testing. here is the sample code.
var wf = new Workflow();
var context = wf.startFlow(<sys_id_of_workflow>, GlideRecord Object, 'record operation'); //record operation could 'insert' | 'update' etc.
Here you can read through the documentation.
Please mark this ACCEPTED & HELPFUL if it helps.
Thanks & Regards,
Sharjeel
Muhammad