ATF test step query variables defined within custom UI Macros and set values

Somujit1
Tera Contributor

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

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@Somujit1 

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! 🙏

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

Thanks @Ankur Bawiskar ,

 

I tried the OOTB Steps Configurations available within the Custom UI Section, but none seem to work.

@Somujit1 

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! 🙏

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