Hi all,
I’m facing the following problem and never saw something like this:
I have this class in keywords:
package com.glownet.automation.web
public class newClass {
public newClass(){
}
public void hola(){
System.out.println("hola");
}
}
And then I have this test case:
import com.glownet.automation.web.newClass
newClass v = new newClass();
v.hola();
When I execute the test I have the following error:
08-22-2019 02:55:20 PM Test Cases/New Test Case
Elapsed time: 0.421s
Test Cases/New Test Case FAILED.
Reason:
groovy.lang.MissingMethodException: No signature of method: Script1566476550079.vicente() is applicable for argument types: (com.glownet.automation.web.vicente) values: [com.glownet.automation.web.vicente@530712d]
at New Test Case.run(New Test Case:3)
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 TempTestCase1566478518601.run(TempTestCase1566478518601.groovy:21)
Any ideas why this is happening?