[Webtest] How to generate random numbers

Deepa Nigam Deepa Nigam <deepani@hotmail.com>
Wed, 2 Apr 2008 14:05:43 -0700


--_a952619a-8e16-4364-b727-33d737541cc2_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Great! Thanks ! I got the solution. It worked.> Subject: Re: [Webtest] How =
to generate random numbers> From: kcasey@optaros.com> To: deepani@hotmail.c=
om> CC: webtest@lists.canoo.com> Date: Wed, 2 Apr 2008 15:33:46 -0500> > He=
llo Deepa-> I've yet to use storeRandom myself, but from reading the docs, =
seems> like you could do something like:> > <storeRandom property=3D"myRand=
omNumber" from=3D"0" to=3D"10" />> <setInputField htmlId=3D"id_random_field=
" value=3D"#{myRandomNumber}" />> > the first step will store an integer in=
 the range 0-10 (inclusive) in a> property called "myRandomNumber". the sec=
ond 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> > gene=
ration. Is there any method in Canoo that I can use to generate> > random n=
umbers. I saw storeRandom but not sure how to use it.> > > > Can someone he=
lp !> > > > > > ___________________________________________________________=
___________> > Use video conversation to talk face-to-face with Windows Liv=
e> > Messenger. Get started!> > ___________________________________________=
____> WebTest mailing list> WebTest@lists.canoo.com> http://lists.canoo.com=
/mailman/listinfo/webtest
_________________________________________________________________
Going green? See the top 12 foods to eat organic.
http://green.msn.com/galleries/photos/photos.aspx?gid=3D164&ocid=3DT003MSN5=
1N1653A=

--_a952619a-8e16-4364-b727-33d737541cc2_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class=3D'hmmessage'>
Great! Thanks !&nbsp;I got the solution. It worked.<BR><BR>&gt; Subject: Re=
: [Webtest] How to generate random numbers<BR>&gt; From: kcasey@optaros.com=
<BR>&gt; To: deepani@hotmail.com<BR>&gt; CC: webtest@lists.canoo.com<BR>&gt=
; Date: Wed, 2 Apr 2008 15:33:46 -0500<BR>&gt; <BR>&gt; Hello Deepa-<BR>&gt=
; I've yet to use storeRandom myself, but from reading the docs, seems<BR>&=
gt; like you could do something like:<BR>&gt; <BR>&gt; &lt;storeRandom prop=
erty=3D"myRandomNumber" from=3D"0" to=3D"10" /&gt;<BR>&gt; &lt;setInputFiel=
d htmlId=3D"id_random_field" value=3D"#{myRandomNumber}" /&gt;<BR>&gt; <BR>=
&gt; the first step will store an integer in the range 0-10 (inclusive) in =
a<BR>&gt; property called "myRandomNumber". the second step will enter the =
value<BR>&gt; of myRandomNumber into a text input field on your page with t=
he ID<BR>&gt; "id_random_field". The first step is the important one, in yo=
ur case -<BR>&gt; once you have the random number stored in a property, you=
 can do<BR>&gt; anything you want with it with any other Webtest steps.<BR>=
&gt; <BR>&gt; Good luck!<BR>&gt; <BR>&gt; On Wed, 2008-04-02 at 13:23 -0700=
, Deepa Nigam wrote:<BR>&gt; &gt; Hi,<BR>&gt; &gt; <BR>&gt; &gt; I am new t=
o Canoo Webtest. My application requires random number<BR>&gt; &gt; generat=
ion. Is there any method in Canoo that I can use to generate<BR>&gt; &gt; r=
andom numbers. I saw storeRandom but not sure how to use it.<BR>&gt; &gt; <=
BR>&gt; &gt; Can someone help !<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; __=
____________________________________________________________________<BR>&gt=
; &gt; Use video conversation to talk face-to-face with Windows Live<BR>&gt=
; &gt; Messenger. Get started!<BR>&gt; <BR>&gt; ___________________________=
____________________<BR>&gt; WebTest mailing list<BR>&gt; WebTest@lists.can=
oo.com<BR>&gt; http://lists.canoo.com/mailman/listinfo/webtest<BR><br /><hr=
 />Going green? <a href=3D'http://green.msn.com/galleries/photos/photos.asp=
x?gid=3D164&ocid=3DT003MSN51N1653A' target=3D'_new'>See the top 12 foods to=
 eat organic.</a></body>
</html>=

--_a952619a-8e16-4364-b727-33d737541cc2_--