Katalon unable to load its own core Web Service library that defines ResponseObject

Hi Team,

I am trying to provide same variable for web and API request and i have imported this web service library “import com.kms.katalon.core.webservice.model.ResponseObject”

While running the test i am facing below error

groovy: 1: unable to resolve class com.kms.katalon.core.webservice.model.ResponseObject
@ line 1, column 1.
import com.kms.katalon.core.webservice.model.ResponseObject
^

1 error

at com.kms.katalon.core.main.ScriptEngine.getScript(ScriptEngine.java:199)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:137)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:128)
at TempTestCase1753363114564.run(TempTestCase1753363114564.groovy:25)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

2025-07-24 18:48:35.628 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/responseobject

I tried doing everything but Katalon doesn’t appear to take load its own core Web Service library that defines ResponseObject.

For sample test i am just using these two line code and its giving me error. Can anyone help with the solution please ?

Wrong:

com.kms.katalon.core.webservice.model — there is no such package defined in the Katalon Studio API.

Possibly you want:

import com.kms.katalon.core.testobject.ResponseObject

Thanks i tried the shared import and it worked.

I wonder why @rathivishal19 got the fake fully-qualified-class-name com.kms.katalon.core.webservice.model.ResponseObject, which does not actually exists. To me, it seems to be a hallucination of AI.

Did you copy&paste a code fragment advised by some AI service? Was it StudioAssist of Katalon? Or anything else like ChaptGPT?

Yes i used an AI like ChatGPT which told me to use that package.

@rathivishal19

Thank you for your reply.

In your case, we witnessed that AI often makes mistakes.