We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

9 REPLIES 9

@tk37 

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

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

@Ankur Bawiskar 

I realized that what I am trying to do is not the right content for ATF.
Thank you so much.

Regards

tk37

@tk37 

Glad to know.

Please mark my response as correct and close the thread.

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

RyadMohameK
Mega Contributor

Hello i have the same issue i used Step confugration to generate the url that i have to access using the record query > document_id and made it as an output that i called absolute_url, it will build the url of the assessment that am trying to complete in my atf test, the issue is that i dont know how to open the url without using open in workspace page because it will open in new page which will break my atf testing, so i need something to open the url that i made or to open the record in the same page to go on with my test please

Hi,

The opening in the same page or different page depends on the URL. ATF has no role to play with respect to controlling it. URL should not have target="_blank"

Regards

Suman P.