Forum Discussion

corki's avatar
corki
Contributor
16 years ago

Working with GROOVY and SCRIPTOM - to use ( Explorer, Excel,.... )

Hi here is the code what I found on internet, and I dont know why it brings ERROR :
java.lang.NoSuchMethodError: org.codehaus.groovy.runtime.InvokerHelper.getInstance()Lorg/codehaus/groovy/runtime/Invoker;

  -->  this code shout OPEN explorer and load url provided in code. I have added SCRIPTOM 1.2 files into BIN, and LIB folders of soapUI and restarted it.


//-----------------------------------------------------------------
import org.codehaus.groovy.scriptom.ActiveXProxy

// instantiate Internet Explorer
def explorer = new ActiveXProxy("InternetExplorer.Application")

// set its properties
explorer.Visible = true;
explorer.AddressBar = true;

// navigate to a site by calling the Navigate() method
explorer.Navigate("http://glaforge.free.fr/weblog");
// ----------------------------------------------------------------
  • Hi,

    Have you tried by updating that lib or bin path in classpath variable?

    I think it should work.

    Mostly the soapui pro have facility to create a path for common libraries and where we can put the jar and its get imported.

    So are you using soapui pro?

    Akhilkumar Patel - Test Automation Architecture