ATF - Use scripted query parameter in Open Service Portal Page step

Community Alums
Not applicable

When creating ATF tests, I commonly use javascript to generate dates.  Unfortunately, I am finding an issue where it will not evaluate in the Open Service Portal Page step.  Does anyone know how to accomplish a dynamic date as a URL parameter?

 

For example, you can use javascript: gs.endOfWeek() to dynamically get a useful date, and this works in most server and client side ATF steps, but doesn't work in this particular step.  It encodes the text and you end up with a URL parameter of javascript:%20gs.endOfWeek() instead of an actual date.

 

Thank you!

2 REPLIES 2

Shaqeel
Mega Sage

Hi @Community Alums 

 

It is not possible through ATF on SP portal.

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Dakker
Tera Guru

I wrote a Test Step Configuration to return the date. It allows you add, subtract from the current date or return the current date. It returns the date in 3 different formats (Server (ServiceNow date/time, string in either date or date/time.