How to over come groovy.lang.MissingMethodException:

hi , I have a API (micro service) which works good in the repository but when I run this from test case I am getting error message

groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords.sendRequest() is applicable for argument types: (java.lang.String) values: [findTestObject(‘Object Repository/request01’)]
Possible solutions: sendRequest(com.kms.katalon.core.testobject.RequestObject), sendRequest(com.kms.katalon.core.testobject.RequestObject, com.kms.katalon.core.model.FailureHandling)

my code is
def duidrequest = WS.sendRequest(“findTestObject(‘Object Repository/request01’)”)

can any one please help


There is a typo in your script. No double quotation marks (") is needed.
my code is
def duidrequest = WS.sendRequest(findTestObject(‘Object Repository/request01’))