Hi,

what version do you use and what error message do you get?

MacroStepBuilder is not needed any longer since quite some time.
You can use Groovy's AntBuilder.

What's the value of "somepage"? or are the quotes missing?

cheers
Dierk

Am 22.03.2009 um 01:58 schrieb Gynivore:


What's the difference between '<invoke url="somepage">' and 'ant.invoke(url: somepage)' ?

I've got a test where, if I use the former, I get the page content I expect, but if I use the latter, the page content is not as expected...

This works as I expect, allowing retrieval of the correct anchors:

      <invoke url="somepage" description="Get it"/>
      <scriptStep description="Process it" language="groovy">
document.getHtmlElementsByAttribute('a', 'title', 'SpecialAnchor').each {
            ...
        }
      </scriptStep>

But this doesn't:

      <scriptStep description="Process it" language="groovy">
ant = new com.canoo.webtest.extension.groovy.MacroStepBuilder(step)
        ant.invoke(url: somepage);
document.getHtmlElementsByAttribute('a', 'title', 'SpecialAnchor').each {
            ...
        }
      </scriptStep>

Anyone have some insight as to why?

Many thanks...

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to