[Webtest] <property file> -- there must be a solution...

Ralf Müller webtest@lists.canoo.com
Wed, 15 Mar 2006 15:00:28 +0100


Hi!

I've the following Problem:

I would like to read in some properties for a series of tests. My 
propterties file looks something like this:

items=5
item.0=a
item.1=b
item.2=c
item.3=d
item.4=e

I read it in with <property file> and do have some ant properties as a 
result. And well - that's already my problem:
When I try to read them via ${item.#{i}} in a <repeat>, the term doesn't 
evaluate as expected.
Yes, I do know that this is because of the difference between ant and 
webtest properties... But what's the right way to do something like 
that? Any ideas?

Best Regards,
Ralf

PS: here's the full code snippet:

<repeat counterName="i" count="${items}">
   <storeProperty name="current.item" value="${item.#{i}}" />
   <!-- do something with #{current.item} -->
</repeat>