[Webtest] access ANT attributes with canoo and groovy

Stefan Kuhn webtest@lists.canoo.com
Fri, 11 Aug 2006 19:03:21 -0300


 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