[Webtest] Looping structure?

Paul King webtest@lists.canoo.com
Sat, 27 May 2006 11:12:25 +1000


Trent Ohannessian wrote:
> Are there any looping structures to do a task multiple times?  Or are 
> there any in the works for a future release?

Yes, see the repeat (probably what you want) and retry steps:

http://webtest.canoo.com/webtest/manual/repeat.html
http://webtest.canoo.com/webtest/manual/retry.html

Alternatively you can use scripting (see groovy and scriptStep steps).

Another option is to use ant-contrib's forEach or for tasks:

http://ant-contrib.sourceforge.net/tasks/tasks/index.html

Cheers, Paul.