How to use ATF to test Custom Widget in service portal?

Steve42
Tera Expert

I'm not finding a way to test Custom Widget in the service portal using the ATF.  I can open the service catalog item but everything in the item is built off of a custom widget.  Is there a way to test this?

5 REPLIES 5

Priyanka Mohapa
ServiceNow Employee
ServiceNow Employee

Please visit https://community.servicenow.com/community?id=community_article&sys_id=b2462b5cdb9d3b0422e0fb2439961....

ATF in Madrid provides configurable test steps for testing Forms, Catalog and Custom Service Portal Pages.

Page Inspector helps to understand the structure of a custom UI or Service Portal Page.

SatheeshKumar
Kilo Sage

Can you brief the functionality of your widget?

 

check the below page to to know the testable UI components and non testable components!

 

-Satheesh

Oleg
Mega Sage

Hi Steve,

it would be good if you describe your problem more detailed. For example, is your first problem to open custom page, which contains your custom widget? Do you get the error "FAILURE: g_form is not defined. A valid form must have g_form defined" on usage of "Open a Form (SP)" because your custom page contains your widget and no GlideForm or no Catalog Item? How you imagine to test your custom widget? Displays the widget just some information? Or you allow user to click on some elements inside your widget? Or users can edit some information (one can define get/set method on the widget)? In other words, it really difficult to help you having absolutely no information about your current problems and about the widget, which you want to test.

I am also facing issues with custom widget. I have added a next button widget on my record producer, is it a way to click that on ATF to proceed to fill other variables in the form?