Validating UI macro and Widget through ATF in Servicenow

Shreya8
Kilo Contributor

Hi I have a catalog item where there is a mandatory validate button(UI Macro and a Widget) which I have to validate through Automated Test Framework.Currently we are in Newyork Version.Is there a way this can be done?

 

Kindly share.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shreya,

In NewYork there are custom UI steps which can handle UI page etc and the html components.

you can use those and check

https://docs.servicenow.com/bundle/newyork-application-development/page/administer/auto-test-framework/concept/custom-ui-test-steps.html

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shreya,

In NewYork there are custom UI steps which can handle UI page etc and the html components.

you can use those and check

https://docs.servicenow.com/bundle/newyork-application-development/page/administer/auto-test-framework/concept/custom-ui-test-steps.html

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Hi Ankur, Can you please specify how to click a UI Macro button on a record producer. ATF is unable to retrieve that component. Do you have any suggestions?

Onkar

Hi Onkar,

you need to use custom UI Step to determine the html component i.e. button within the macro

There are couple of restrictions as well for that

please refer below links:

https://docs.servicenow.com/bundle/orlando-application-development/page/administer/auto-test-framewo...

Regards
Ankur

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