[Webtest] New custom step StoreRandom added to community site

Paul King webtest@lists.canoo.com
Fri, 13 Aug 2004 16:10:05 +1000


http://webtest-community.canoo.com/wiki/space/StoreRandom

StoreRandom description:

This custom step allows setting webtest dynamic properties with
random values. It is more convenient than setting ant variables
or using scripting to set values. It supports random numbers,
strings and tokens. Examples:

<storeRandom property="day" choice="Sun,Mon,Tue,Wed,Thu,Fri,Sat" />
<storeRandom property="bignum" from="500" to="600" />
<storeRandom property="littlenum" from="6" to="10" />
<storeRandom property="username" length="#{littlenum}" 
chars="abcdefghijk_" />
<storeRandom property="randomwords" length="60" />

Cheers, Paul.