ATF:Need to Validate if a URL is opening on Click of Order Now in Service Portal

saggi
Tera Contributor

Hello Team,

I have a scenario in which when you click on Order now on a SP Catalog Item.it is redirected to another Catalog Item.

We need to validate this URL  or Catalog Item Open.Do we have out of the box Step form this or it involves scripting.

Can someone point me to this script as I am new to ATF 

1 ACCEPTED SOLUTION

@saggi 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

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

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

You may not be able to validate this using ATF.

If the redirection happens in same window you can try checking on that but not when it opens in new tab

Regards
Ankur

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

Thanks Ankur,It is opening in the same Window when you click on order now since URL is submitted through onsubmit Catalog Client Script. Any OOO Step I can use

@saggi 

no out of the box test step.

You can possibly try using "Assert Text on Page (Custom UI)" step and try searching for the new catalog item name.

Note: I haven't tested it though

Regards
Ankur

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

@saggi 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

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