Hi Marcel,

Here are a few lines form a test I did today that seems to match the logic
you describe and works OK:

       <repeat description = "for each line in AKL page" startCount="1"
count="5" countername="line" >
           <storeRegEx text="(\d+,)(\d+,)(\d+,)(\d+,)(\d+,)"
group="#{line}" property="Price" propertyType="dynamic"/>
           <echo message="price using RegEx of #{Price}" />

The only problem I have is being crap at regex I don't like the way I have
to repeat the group.

If that isn't what you are trying to do, perhaps you need to give the exact
problem...

cheers,
      John

On 5/23/07, Marcel Stör <[EMAIL PROTECTED]> wrote:

Denis N. Antonioli wrote:
> 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?

Did I maybe puzzle everybody with my question? Looks I failed to explain
it in a comprehensible way. 2nd try:
I guess what I'm looking for is something like <repeat
regex="myExpressionWithManyMatches"... Since that doesn't exist I'm
looking to achieve that with other tasks/steps, but I'm out of ideas.

Regards,
Marcel

--
Marcel Stör, http://www.frightanic.com
Blog: http://frightanic.wordpress.com
Skype: marcelstoer


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to