Forum Discussion

qwer1234's avatar
New Contributor
12 years ago

groovy.lang.MissingMethodException: No signature of method:

I am trying to run java eclipse files from soapUI. The files currently run fine in Eclipse, however when attempted to be run in soapUI, the following error message is shown.
groovy.lang.MissingMethodException: No signature of method: is applicable for argument types: (java.lang.String) values: [] Possible solutions: init(java.lang.String, java.lang.Boolean), wait(), wait(long), wait(int), any(), print(java.lang.Object)

I think this suggests that the init parameters are set wrong however I believe I have them set up correctly as init(String, Boolean). Why is this error message shown?

code from soapUI:

def env = testRunner.testCase.testSuite.project.getPropertyValue("env")
def baseUrl = testRunner.testCase.testSuite.project.getPropertyValue("baseUrl")"The baseurl is "+baseUrl)"The env under test is "+env)

Test testStep = new Test();

code snippet from Eclipse:

import com.eviware.soapui.model.testsuite.TestRunner;

public class Test extends BaseSelenium {
public static void main(final String[] args) {
final Test trial = new Test();
try {
trial.init("", false);
} catch (Exception e) {
// TODO Auto-generated catch block

BaseSelenium class code snippet in Eclipse:
public void init(final String baseUrl, Boolean useDifferentNavigURL) throws Exception {

this.startTime = System.currentTimeMillis();

driver = new InternetExplorerDriver();

this.baseUrl = baseUrl;

selenium = new WebDriverBackedSelenium(driver, baseUrl);
No RepliesBe the first to reply