ATF to reopen incident from Service Portal Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 06:12 AM
Hi
I want to create an ATF test where using the ATF test i go to my tickets in the Service Portal, open any of the closed incident which i had created and to click on an action to reopen the incident. i want to be able to click on reopen incident action from service portal. Screenshot attached for more clarity. Is this possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 12:08 PM
First in your test Steps, add a Record Query step:
Then set the condition of your ticket (Closed)
Adda a next step "Record Update"
Then select Select the record you query "First record":
Set your new state in the Field Values "Reopen".
The add your new tests steps to validate the information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 10:55 PM
@Marco0o1 I want to be able to reopen the incident from Service Portal and not from SNOW UI. I have attached the screenshot already from where i want to reopen the incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 11:17 PM - edited 06-07-2023 11:22 PM
Can you share what steps did you add so far and which one is not working?
For clicking on that Actions button you will require Custom UI Step i.e. Click Component (Custom UI)
It will detect the html id of that button and then it will click it
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 11:33 PM
This worked for me; you enhance it as per your requirement how you want to open the incident.
For testing purpose I am directly opening it by giving the sysId
each time you add the Custom UI Step you retrieve the components
Output:
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader