[Webtest] access ANT attributes with canoo and groovy
Marc Guillemot
webtest@lists.canoo.com
Mon, 14 Aug 2006 19:05:40 +0200
Hi Stefan,
your question would be probably better on Groovy mailing list.
Have you tried to look at the project's property "userRole"? Otherwise,
what would work is too set a special property from within the macrodef,
before the groovy call. Then you can look at the project's properties
from the groovy script.
Marc.
Stefan Kuhn wrote:
> Hi folks,
>
> i have the following structure in an ANT file:
>
> <macrodef name="groovyTest" >
> <attribute name="userRole" default="x2"/>
> <sequential>
> <groovy file="${tests}/MyTest.groovy" />
> </sequential>
> </macrodef>
>
> I couldn't figure out how to access the attribute "userRole" within my
> groovy script file.
>
> Grateful for help ;)
> -stefan
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>