How to Create a Test Step of Open a Record Producer (SP)?

sl888
Kilo Guru

Hi,

I have an issue with creating a test step of Open a Record Producer (SP) where it error out with error summary "FAILURE: Failed to open Record Producer. Either you don't have access to the Record Producer or g_form is not defined". I am in London version. When I read documentation from ServiceNow (https://docs.servicenow.com/bundle/london-application-development/page/administer/auto-test-framewor...) it said that I need to have access on the record producer which I have an admin role and I add role catalog_admin, and catalog_manager, but when I execute the test it still error out.

Please help.find_real_file.png

Thank you.

1 ACCEPTED SOLUTION

Tony Cattoi
Mega Guru

I had the same error.  To fix it I had to add the new SC Catalog Item widget to the sc_cat_item page.  The page had the old catalog item widget which is now called SC Catalog Item Deprecated on the page.  Once I did that everything worked fine with the automated test.

View solution in original post

11 REPLIES 11

sl888
Kilo Guru

Hi Ankush,

I also tried create a test step for Open REcord Producer (SP) in my developer instance and select the OOTB record producer of videoconferencing. I have the same error that said "FAILURE: Failed to open Catalog Item. Either you don't have access to the Catalog Item or g_form is not defined".

I think I might need to log a HI ticket for this issue.

Tony Cattoi
Mega Guru

I had the same error.  To fix it I had to add the new SC Catalog Item widget to the sc_cat_item page.  The page had the old catalog item widget which is now called SC Catalog Item Deprecated on the page.  Once I did that everything worked fine with the automated test.

sl888
Kilo Guru

Hi Tony,

 

Thank you for your answer. It does fix my issue after updating the widget from Sc Catalog Item Deprecated into SC Catalog Item.

Mahesh51
Giga Contributor

We have a customized item and instead SC Catalog Item Deprecated, we have the customized name 'xxx SC Catalog item', and still I get the g_form error on running it.

I believe that the automated test framework currently will only work with the ServiceNow provided widget.