ATF test step query variables defined within custom UI Macros and set values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2025 11:22 PM
Hi All,
We have catalog item variables displayed through a custom Formatter and UI Macro, on SCTASK record.
Is there a way to query the visibility of Formatter and UI Macro variables, and set value for these within ATF tests?
I tried using the OOTB 'Variable State Validation' and 'Set Variable Values' (non-SP) options, but it doesn't work as these options seems to work for UI Catalog View/OOTB Variable Summarizer section only.
Thanks,
Somujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2025 11:30 PM
those won't work as you have the variables within custom formatter.
You can try to use Custom UI Steps and see if that helps
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2025 11:53 PM
Thanks @Ankur Bawiskar ,
I tried the OOTB Steps Configurations available within the Custom UI Section, but none seem to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2025 12:03 AM
then not possible to test
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
