Please let us know what you are using Katalon Studio for?
I have currently applied Katalon Studio in my project
How would your work be affected if this issue has not been resolved?
- I cannot continue (this test) and have to work on something else while awaiting your response
Operating System
Windows 10
Katalon Studio Version - 7.8.1
Katalon Studio logs
- Windows logs folder: \config.metadata.log
Screenshots / Videos
- Please attach screenshots or videos if necessary to reproduce the issue
Issue
Unable to reference methods of class WSBuiltInKeywords in groovy script the same way it is done in Test Case. Note: WebUI methods work but not WS (WebService) methods. See error below.
Import
Import is defined as WS
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
Code (Same method works in Katalon Test but not in Groovy script)
ResponseObject xmlGetList = WS.sendRequestAndVerify(findTestObject(âAPI/JOB/TA_API_JOB_JOBRUN_GETLISTâ, [(âURLâ) : aURL, (âJOB_IDâ) : jobId]))
Error
Description | Resource | Path | Location | Type |
---|---|---|---|---|
Groovy:[Static type checking] - Cannot find matching method com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords#sendRequestAndVerify(com.kms.katalon.core.testobject.TestObject). Please check if the declared type is right and if the method exists. | UtilMethods.groovy | /C%%Users%jims%git%twa%TWA.prj/Keywords/com/taf | line 235 | Java Problem |
Is the syntax different for Groovy or am I missing an Import? Is there a limitation of using Groovy to execute the same Katalon methods?
Thanks in advance for any help you can give!