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

Nitesh Balusu
Giga Guru

Are you sure opening the record producer you're trying to open has the right roles to open it? It could be more than being an admin sometimes. Have you tried opening another record producer that you have?

Also, instead of serviceportal option, try selecting service catalog and check if you're able to open the same record producer from there.

sl888
Kilo Guru

Hi Nithesh,

 

I tried with other record producers and got the same error message. I can't try with selecting service catalog as my record producer was not display there. I can't find my record producer in the list as my record producer has catalogs of Facilities Item not Service Catalog in sc_cat_item table. What other roles that I need except for admin to open Facilities record producer?

Ankush Agrawal
ServiceNow Employee
ServiceNow Employee

Hello

There could be a case that you have customized SP widget and hence the upgrade feature of ATF support is not provided on your instance. 

Can you please check if that is the case?

--

Best regards

Ankush

Nitesh Balusu
Giga Guru

I think its how our service portals are customized, I am having a different kind of error, have to investigate or open a HI ticket on it.