ATF - Use scripted query parameter in Open Service Portal Page step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 02:00 PM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 01:18 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 09:13 AM
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.