[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 ! I got the solution. It worked.<BR><BR>> Subject: Re=
: [Webtest] How to generate random numbers<BR>> From: kcasey@optaros.com=
<BR>> To: deepani@hotmail.com<BR>> CC: webtest@lists.canoo.com<BR>>=
; Date: Wed, 2 Apr 2008 15:33:46 -0500<BR>> <BR>> Hello Deepa-<BR>>=
; I've yet to use storeRandom myself, but from reading the docs, seems<BR>&=
gt; like you could do something like:<BR>> <BR>> <storeRandom prop=
erty=3D"myRandomNumber" from=3D"0" to=3D"10" /><BR>> <setInputFiel=
d htmlId=3D"id_random_field" value=3D"#{myRandomNumber}" /><BR>> <BR>=
> the first step will store an integer in the range 0-10 (inclusive) in =
a<BR>> property called "myRandomNumber". the second step will enter the =
value<BR>> of myRandomNumber into a text input field on your page with t=
he ID<BR>> "id_random_field". The first step is the important one, in yo=
ur case -<BR>> once you have the random number stored in a property, you=
can do<BR>> anything you want with it with any other Webtest steps.<BR>=
> <BR>> Good luck!<BR>> <BR>> On Wed, 2008-04-02 at 13:23 -0700=
, Deepa Nigam wrote:<BR>> > Hi,<BR>> > <BR>> > I am new t=
o Canoo Webtest. My application requires random number<BR>> > generat=
ion. Is there any method in Canoo that I can use to generate<BR>> > r=
andom numbers. I saw storeRandom but not sure how to use it.<BR>> > <=
BR>> > Can someone help !<BR>> > <BR>> > <BR>> > __=
____________________________________________________________________<BR>>=
; > Use video conversation to talk face-to-face with Windows Live<BR>>=
; > Messenger. Get started!<BR>> <BR>> ___________________________=
____________________<BR>> WebTest mailing list<BR>> WebTest@lists.can=
oo.com<BR>> 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_--