Oops, I forgot to include the traceback, in case it helps:

c:\Projects\workspace\fast401k\src\web_test\modules\submitTradesOld.xml:22:
Error invoking groovy: No such property: url for class:
com.gargoylesoftware.htmlunit.WebResponse, Step: GroovyStep at
c:\Projects\workspace\fast401k\src\web_test\modules\submitTradesOld.xml:22:
 with (taskName="groovy")
        at 
com.canoo.webtest.extension.groovy.GroovyInvoker.doExecute(GroovyInvoker.java:54)
        at 
com.canoo.webtest.extension.groovy.GroovyStep.doExecute(GroovyStep.java:83)
        at com.canoo.webtest.steps.Step.execute(Step.java:102)
        at 
com.canoo.webtest.extension.groovy.GroovyStep.execute(GroovyStep.java:64)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)




On Thu, Sep 9, 2010 at 1:39 PM, Lisa Crispin <[email protected]> wrote:

> One of our webtest scripts gets this error with the latest version (we are
> on R_1762 currently, and I'm trying to move to R_1809). I searched on the
> error, but the results did not enlighten me.
>
> Webtest script has:
>   <clickLink description="click to see the trade file"
>     href="epltrade"/>
>
>      <!-- This will show the open window. -->
>   <groovy>
>     def windows = step.context.webClient.webWindows
>     def index = 0
>     windows.each
>     {
>       println index + "-> name: " + it.name + ", url: " +
>     it.enclosedPage.webResponse.url
>     }
>     </groovy>
>
> The clickLink works fine, brings up the file, but then there is an error on
> the groovy step:
> Error invoking groovy: No such property: url for class:
> com.gargoylesoftware.htmlunit.WebResponse
>
> Does groovy not support 'url' anymore? Or am I just missing something? Have
> I missed something in installing WebTest that is causing these errors we're
> seeing with the new version?
> thanks
> Lisa
>
> --
> Lisa Crispin
> Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
> and Agile Teams_ (Addison-Wesley 2009)
> Contributor to _Beautiful Testing_ (O'Reilly 2009)
> http://lisacrispin.com
> @lisacrispin on Twitter
>
>


-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com
@lisacrispin on Twitter

Reply via email to