hm, surprising. Your example seems to be a little outdated. What WebTest version and documentation are you referring to?
I'm concerned with 'dynamicProperties', which should meanwhile read 'webtestProperties', see http://webtest.canoo.com/webtest/manual/groovy.html For the running examples of the selftest see http://webtest.canoo.com/fisheye/viewrep/CanooWebTest/selftests/tests/groovy .xml?r=10563 what happens if you do println step ? cheers Mittie > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Curelea, Alexandru > Sent: Mittwoch, 5. Juli 2006 18:08 > To: [EMAIL PROTECTED] > Subject: [Webtest] Can't access "step" variable inside Groovy step > > > Hi all, > > I can't seem to access the step convenience variable inside a > <groovy> step. A very simple example: > > <storeRegEx description="Get Marked ID" text="markedId=([0-9]*)" > property="markedTimeId" propertyType="dynamic" group="1"/> > <groovy> > String markedId = 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 > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

