10 messages in com.canoo.lists.webtestRe: [Webtest] No dynamic property in ...
FromSent OnAttachments
Marcel Stör21 May 2007 00:49 
Denis N. Antonioli21 May 2007 02:39 
Marcel Stör21 May 2007 05:40 
Marc Guillemot21 May 2007 06:28 
Marcel Stör21 May 2007 06:40 
Marcel Stör23 May 2007 01:23 
John and Pip23 May 2007 01:49 
Michael Habbert23 May 2007 01:56 
Marcel Stör23 May 2007 02:13 
Marc Guillemot23 May 2007 04:24 
Subject:Re: [Webtest] No dynamic property in storeRegEx
From:Denis N. Antonioli (deni@canoo.com)
Date:05/21/2007 02:39:37 AM
List:com.canoo.lists.webtest

Hi

On 21 mai 07, at 09:49, Marcel Stör wrote:

If I remove propertyType="ant" or use propertyType="dynamic", <echo message="${myMenuItemUrl}" /> will print ${myMenuItemUrl} instead of the real value. Why is that?

See <http://webtest.canoo.com/webtest/manual/properties.html> You need a hash '#' to access a dynamic property, like: <echo message="#{myMenuItemUrl}" />

This wouldn't be such a big deal if I only had this one menu item to check, but - and this is my second question - I want to repeat the above for each menu item. Of course, in a somewhat dynamic maner... I'd like to define a collection of myMenuItemText (is part of my regex above) values and have the above repeated. How to go about that?

The repeat step <http://webtest.canoo.com/webtest/manual/repeat.html> may be the simplest solution.

Otherwise, groovy can inject any kind of code inside a webtest ;-)

Happy testing dna