Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
17 years ago

importing org.codehaus.groovy.scriptom.ActiveXProxy

Hello,
I am trying to launch internet explore via groovy script within a soapui testcase to validate some registration URL. I read the groovy docs and followed their example and was able to launch IE using groovyconsole. However when I add the same script in soapui groovy I get an error at the import statement. Can you tell me where I am going wrong. Seems like I have to import some jar and dll files from the scriptcom zip bundle. The URL and groovy script is shown below.
http://groovy.codehaus.org/COM+Scripting

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
explorer.Navigate("http://glaforge.free.fr/weblog")
Thread.sleep(1000)
explorer.StatusText = "Guillaume Laforge's weblog"
Thread.sleep(2000)

// quit Internet Explorer
explorer.Quit()

Thanks

Ali

14 Replies

  • alibaba82's avatar
    alibaba82
    Super Contributor
    It contains
    C:\Workspace\QA\Automation\SoapUIScripts\Global_Groovy

    which is correct.
  • omatzura's avatar
    omatzura
    Super Contributor
    ok thanks..

    just for testing; could you please copy all the scripts in this folder to the /scripts folder under the bin folder you are running the testrunner in?

    (ie copy them to C:\Program Files\eviware\soapUI-Pro-1.7.5-beta2\bin\scripts)

    regards!

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    that did not work. Would it help if I send the files over ?
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    yes, please do :-)

    (the project and your scripts)

    regards!

    /Ole
    eviware.com