Selenium/TestNG/JUnit Migration to Katalon Studio


This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/selenium-testng-junit-migration.html

After migrating my TestNG API tests on Katalon, I’m getting the following error on every REST call being made. (Note: The test runs fine without Katalon)

java.lang.AbstractMethodError: io.restassured.internal.ResponseParserRegistrar.getProperty(Ljava/lang/String;)Ljava/lang/Object;
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:50)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:307)
at io.restassured.internal.ResponseParserRegistrar.(ResponseParserRegistrar.groovy:44)
at io.restassured.RestAssured.createTestSpecification(RestAssured.java:1448)
at io.restassured.RestAssured.given(RestAssured.java:653)
at io.restassured.RestAssured.get(RestAssured.java:720)
at src.main.java.com.ge.automation.oms.Incident.getIncidentId(Incident.java:32)
at src.test.java.com.ge.digital.work_model.AssignCrewToTask.testAssignCrewToWorkOrder(AssignCrewToTask.java:30)
at com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords$_runTestNGTestClasses_closure2.doCall(TestNGBuiltinKeywords.groovy:106)
at com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords$_runTestNGTestClasses_closure2.call(TestNGBuiltinKeywords.groovy)
at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:68)
at com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords.runTestNGTestClasses(TestNGBuiltinKeywords.groovy:95)
at com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords$runTestNGTestClasses.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
at Script1591696857554.run(Script1591696857554.groovy:11)
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:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149)
at TempTestCase1591774411708.run(TempTestCase1591774411708.groovy:25)
at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:263)

Hi,

Am in process of migrating existing scripts to Katalon, is there a possible way to convert the POM structure (in .java) file to Object repository .

Please let me know your thoughts on this.

Thanks