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
[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