Unable to submit a Catalog item in Service portal

SyydQ
Tera Contributor

Hi,

 

I am using ATF for testing a catalog item but stuck in Submit step. For my instance the 'Submit' button label has been renamed to 'Request'. 

The test steps are:

1. Impersonate

2. Open catalog Item (SP)

3. Set variable values (SP)

4. Submit a Form (SP)  < assert type = Form submitted to server>

when I'm running the tests, runner hangs on form submission. Step 1-3 ran successfully. Any idea how to resolve this.

 

SyydQ_0-1736367939551.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@SyydQ 

I agree with what @Brian Lancaster  has mentioned.

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

View solution in original post

5 REPLIES 5

Brian Lancaster
Tera Sage

For catalog items you should be using the Order a Catalog Item (SP) test step. Submit a Form (SP) is for record producers like Create an incident.

Shaqeel
Mega Sage

Hi @SyydQ 

 

Happens to me also.

The thing is set the timeout for Submit a form(SP) for like 60 second.

It will still just show submitting but thats ok.

Your request is generated.

You can now impersonate to required ITIL user and use open existing record >>Submit a form (SP) req table.

 

Regards

Shaqeel

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

You should not use Submit a form(SP) for catalog items. Just because it works now by setting the timeout to 60 seconds does not guarantee that it won't get broken in an upgrade. But Order a Catalog Item (SP) will most likely not break as it is out of the box specifically designed to test submissions of a catalog item.

@Brian Lancaster 

 

I tried the option  and got the following error.

 

This step failed because the client error '*** Script [TaskSLAController]: 2025-01-14 08:14:08.099 _getTask: failed to retrieve record from table "sc_req_item with sys_id "e4e40e9a1b0f5690dcc5a97ae54bcbd3": no thrown error' was detected on the page being tested. See failing Test Logs. To ignore these errors in the next test run, use 'Add all client errors to warning/ignored list' links.