Salut David,
the values stored by the storeXXXX steps will be available as WebTest
properties (or as Ant property if you change the default settings) with
the syntax #{objId} until the end of the webtest.
If you want to use it after </webtest>, you can set propertyType="ant"
in your storeXXX step and access like any Ant property with ${objId}.
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
dav wrote:
> Hi *,
>
> I'm using definition (macrodef in definitions/ directory) in my tests
> scenarii, call like :
>
>
> <addObj ck="${st.bo.hash}" sk="${st.service.hash}" />
>
>
> Is there a way to retrieve a value obtains in this macrodef, and use it
> in caller (my ant task) ?
> I mean, addObj macro last action is :
>
>
> <storeRegEx property="objId" text="^ticketId=([0-9]+);"
> description="Store ticketId into objId" />
>
> <storeProperty description="store objId for later use"
> name="objId" value="#{objId}" />
>
>
> Does anybody knows how to retrieve this objId after returning from
> macrodef ?
>
> dav.
>
> PS: I'm not Java user, I just use webTest for PHP5 testing ! :)
> --
>
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest