[Webtest] Can't access "step" variable inside Groovy step
Curelea, Alexandru
webtest@lists.canoo.com
Wed, 5 Jul 2006 12:07:34 -0400
Hi all,
I can't seem to access the step convenience variable inside a <groovy> =
step. A very simple example:
<storeRegEx description=3D"Get Marked ID" text=3D"markedId=3D([0-9]*)" =
property=3D"markedTimeId" propertyType=3D"dynamic" group=3D"1"/>
<groovy>
String markedId =3D step.dynamicProperties.markedTimeId
</groovy>
This fails with:
Exception
com.canoo.webtest.engine.StepExecutionException
Message
Unexpected exception caught: =
C:\Work\tsm\canoo\webtests\modules\markedtime\deleteAllMarkedTimes.xml:12=
: groovy.lang.MissingPropertyException: No such property: step for =
class: Script1
The way I'm trying to use it seems consistent with the examples in the =
WebTest documentation... am I missing something really simple? (I hope =
so!)
Thanks for any help,
Alex