[Webtest] newbies question-how can I implement this

linux guy webtest@lists.canoo.com
Thu, 11 Sep 2003 10:07:13 +0800


thx,it works well.
sorry for my late thx:P
----- Original Message -----
From: "Dierk Koenig" <dierk.koenig@canoo.com>
Date: Wed, 27 Aug 2003 13:20:44 +0200
To: <webtest@lists.canoo.com>
Subject: RE: [Webtest] newbies question-how can I implement this

> attached is a file sleep.java that implements the sleep custom step.
> 
> add the sleep.class to your webtest.jar (it needs to be in the
> subdir com\canoo\webtest\extension of the jar).
> 
> add the following line to your webtesttaskdefs.properties:
> sleep=com.canoo.webtest.extension.Sleep
> 
> now you have a sleep step like below that you can use like any other
> step.
> 
> cheers
> Mittie
> 
> > -----Original Message-----
> > From: webtest-admin@lists.canoo.com
> > [mailto:webtest-admin@lists.canoo.com]On Behalf Of linux guy
> > Sent: Montag, 25. August 2003 5:44
> > To: webtest@lists.canoo.com
> > Subject: RE: [Webtest] newbies question-how can I implement this
> >
> >
> > thank u a lot.
> > I just write code as below:
> > <myCustomStep>
> > <sleep msecs="1000"/>
> > </myCustomStep>
> > but ant tells me that myCustomStep doesn't support element sleep
> >
> > could u give me one simple but complete sample which implements sleep?
> > thx u a lot!
> > ----- Original Message -----
> > From: "Dierk Koenig" <dierk.koenig@canoo.com>
> > Date: Fri, 22 Aug 2003 11:40:28 +0200
> > To: <webtest@lists.canoo.com>
> > Subject: RE: [Webtest] newbies question-how can I implement this
> >
> > > you best look into
> > >
> > http://webtest.canoo.com/webtest/api/com/canoo/webtest/extension/M
> > yCustomSte
> > > p.html
> > >
> > > make a step that can be used as <sleep msecs="1000"/> .
> > > Hint: your doExecute Method will be something like
> > > 	Thread.currentThread().sleep(fMsecs);
> > >
> > > cheers
> > > Mittie
> > >
> > > > -----Original Message-----
> > > > From: webtest-admin@lists.canoo.com
> > > > [mailto:webtest-admin@lists.canoo.com]On Behalf Of linux guy
> > > > Sent: Freitag, 22. August 2003 11:00
> > > > To: webtest@lists.canoo.com
> > > > Subject: RE: [Webtest] newbies question-how can I implement this
> > > >
> > > >
> > > > thx a lot
> > > > I write one Customstep ,that is one <invoke> followed by several
> > > > <verifytitle>
> > > > but it doesn't work yet.
> > > > could u give me some advice or a piece of example?
> > > > thx
> > > > ----- Original Message -----
> > > > From: "Dierk Koenig" <dierk.koenig@canoo.com>
> > > > Date: Fri, 22 Aug 2003 10:30:17 +0200
> > > > To: <webtest@lists.canoo.com>
> > > > Subject: RE: [Webtest] newbies question-how can I implement this
> > > >
> > > > > Hi,
> > > > >
> > > > > there is no such "sleep" step but you can easily create a CustomStep
> > > > > for doing so. Refer to the online doc for more information.
> > > > >
> > > > > What feature of your application are your going to test
> > > > > with such a high repeat count?
> > > > >
> > > > > curious
> > > > > Mittie
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: webtest-admin@lists.canoo.com
> > > > > > [mailto:webtest-admin@lists.canoo.com]On Behalf Of linux guy
> > > > > > Sent: Freitag, 22. August 2003 9:14
> > > > > > To: webtest@lists.canoo.com
> > > > > > Subject: [Webtest] newbies question-how can I implement this
> > > > > >
> > > > > >
> > > > > > hi,I install ant now,and can make it works well
> > > > > >
> > > > > > I use <repeat count="X"> to visit one html page
> > > > > > to test our web server,when X is not big enought,such as(1-300),
> > > > > > it works well,but when I set X to 800 or some number else,
> > > > > > ant give me the exception "connection time out".
> > > > > >
> > > > > > so I wanna set when one step is finished,the process can pause
> > > > > > for some time,
> > > > > > I think there may be some Specification which is similar with
> > > > sleep in C,
> > > > > > but I can't find it?
> > > > > >
> > > > > > how can I do?thx
> > > > > >
> > > > > > --
> > > > > > ______________________________________________
> > > > > > http://www.linuxmail.org/
> > > > > > Now with e-mail forwarding for only US$5.95/yr
> > > > > >
> > > > > > Powered by Outblaze
> > > > > > _______________________________________________
> > > > > > WebTest mailing list
> > > > > > WebTest@lists.canoo.com
> > > > > > http://lists.canoo.com/mailman/listinfo/webtest
> > > > > >
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > WebTest mailing list
> > > > > WebTest@lists.canoo.com
> > > > > http://lists.canoo.com/mailman/listinfo/webtest
> > > >
> > > > --
> > > > ______________________________________________
> > > > http://www.linuxmail.org/
> > > > Now with e-mail forwarding for only US$5.95/yr
> > > >
> > > > Powered by Outblaze
> > > > _______________________________________________
> > > > WebTest mailing list
> > > > WebTest@lists.canoo.com
> > > > http://lists.canoo.com/mailman/listinfo/webtest
> > > >
> > > >
> > >
> > >
> > > _______________________________________________
> > > WebTest mailing list
> > > WebTest@lists.canoo.com
> > > http://lists.canoo.com/mailman/listinfo/webtest
> >
> > --
> > ______________________________________________
> > http://www.linuxmail.org/
> > Now with e-mail forwarding for only US$5.95/yr
> >
> > Powered by Outblaze
> > _______________________________________________
> > WebTest mailing list
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> >
> >
<< Sleep.class >>
<< Sleep.java >>

-- 
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze