ATF : How to open the specified URL

tk37
Tera Contributor

I want to open a specific URL in ATF to simulate the behavior when a user clicks on a link in an email.
As a test, I tried to open the link using the "Click Component (Custom UI)" test step from "Preview Notification" in Notification as an Admin user, but the link was not detected by ATF because it opens in a separate window.
I would like to know how to open a URL specified in ATF in the same window.

(The "Open an Existing Record" test step, etc. cannot be used because the specified URL must be accessed.)

1 ACCEPTED SOLUTION

@tk37 

I don't the entire functionality can be tested using ATF

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

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@tk37 

you can only use Click Component step

If it's not working then possibly it's not supported or not feasible

can you share your test steps screenshot?

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

@Ankur Bawiskar 

 

Thank you for your help.
I have tried Test in two ways.

In both cases, no record of the URL being opened was kept in the transaction log.

 

1. Testing using the Click Component step

tk37_0-1668490841924.png

 

2. Testing using the Run Server Side Script step

(Execution order:9)

tk37_1-1668490912829.pngtk37_2-1668490928213.png

Thank you,

tk37

@tk37 

But why do you wish to test the preview notification functionality?

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

@Ankur Bawiskar 

I would like to confirm the process of updating a custom Column in the sys_user table with the datetime of the most recent access to a Fulfiller equivalent record.
One of the requirements for this process is for updates due to clicking on a specific Notification link.

 

Thank you,

tk37