Hello Deepa-
I've yet to use storeRandom myself, but from reading the docs, seems
like you could do something like:

<storeRandom property="myRandomNumber" from="0" to="10" />
<setInputField htmlId="id_random_field" value="#{myRandomNumber}" />

the first step will store an integer in the range 0-10 (inclusive) in a
property called "myRandomNumber". the second step will enter the value
of myRandomNumber into a text input field on your page with the ID
"id_random_field". The first step is the important one, in your case -
once you have the random number stored in a property, you can do
anything you want with it with any other Webtest steps.

Good luck!

On Wed, 2008-04-02 at 13:23 -0700, Deepa Nigam wrote:
> Hi,
>  
> I am new to Canoo Webtest. My application requires random number
> generation. Is there any method in Canoo that I can use to generate
> random numbers. I saw storeRandom but not sure how to use it.
>  
> Can someone help !
> 
> 
> ______________________________________________________________________
> Use video conversation to talk face-to-face with Windows Live
> Messenger. Get started!

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

Reply via email to