ATF to reopen incident from Service Portal Page

Nafeesa bashir
Tera Contributor

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?

Nafeesabashir_0-1686143447900.png

 

10 REPLIES 10

Marco0o1
Tera Sage

Hi @Nafeesa bashir 

 

First in your test Steps, add a Record Query step:

Marco0o1_0-1686164062938.png

 

Then set the condition of your ticket (Closed)

Marco0o1_1-1686164157553.png

Adda a next step "Record Update"

Marco0o1_4-1686164664456.png

Then select Select the record you query "First record":

Marco0o1_5-1686164706903.png

Set your new state in the Field Values "Reopen".

 

The add your new tests steps to validate the information.

 

Nafeesa bashir
Tera Contributor

@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.

Ankur Bawiskar
Tera Patron
Tera Patron

@Nafeesa bashir 

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Nafeesa bashir 

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:

ATF Incident Re-open.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader