Web request inside test case returns null object when run on Linux

Hi All,
I am calling an application’s web service in my test case as below.:
def getConfigurationResponse = WS.sendRequest(findTestObject(‘UIM/InventoryWSHTTPSoapBinding/GetConfiguration/getConfigurationRequest’,[‘entityId’:SHM_CVR_RFS_ServiceID]))
def responseXML = getConfigurationResponse.responseBodyContent

But when running this test case in Linux KSE, I am getting below error for null object. Works fine in Windows KSE

2022-10-21 16:50:34.021 DEBUG c.k.k.core.testobject.ObjectRepository - Finding Test Object ‘Object Repository/UIM/InventoryWSHTTPSoapBinding/GetConfiguration/getConfigurationRequest’
2022-10-21 16:50:34.021 WARN c.k.k.core.testobject.ObjectRepository - Test object with id ‘Object Repository/UIM/InventoryWSHTTPSoapBinding/GetConfiguration/getConfigurationRequest’ does not exist
2022-10-21 16:50:34.022 DEBUG c.k.k.c.w.helper.WebServiceCommonHelper - Checking request object
2022-10-21 16:50:34.026 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to send request (Root cause: java.lang.IllegalArgumentException: Request object is null
at com.kms.katalon.core.webservice.helper.WebServiceCommonHelper.checkRequestObject(WebServiceCommonHelper.java:103)

Below is the definition of this web service

Any input will be appreciated!

Could you try to use the keyword Delay before and after the WS.sendRequest to see if it makes any move to your current issue? You could consider the demonstrating screenshot for further information.

1 Like