[Webtest] ANT Sleep and WaitFor calls

Jeannie Graham webtest@lists.canoo.com
Mon, 23 Feb 2004 14:05:06 -0800


Oops, no, I only forgot it in the email, my code actually does read "120".
So, you only had to edit the webtestTaskdefs.properties and that was it?
And then it worked?

-----Original Message-----
From: Terry Steichen [mailto:terry@net-frame.com]
Sent: Monday, February 23, 2004 1:28 PM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] ANT Sleep and WaitFor calls


Jeannie,

Are you missing a double-quote around the 120?

Anyway, the code fragment I provided is from a script I use (successfully)
every day.

Regards,

Terry

----- Original Message -----
From: "Jeannie Graham" <Jgraham@arrowheadgrp.com>
To: <webtest@lists.canoo.com>
Sent: Monday, February 23, 2004 3:56 PM
Subject: RE: [Webtest] ANT Sleep and WaitFor calls


> Thank you so much Terry!   Okay, I did exactly that, but now, I am getting
a
> new error message:
>
> "The <steps> task doesn't support nested text data."
>
> Any ideas on this one?   My code was, <sleep seconds=120"/>
>
> Thanks so much for taking the time.
>
> -----Original Message-----
> From: Terry Steichen [mailto:terry@net-frame.com]
> Sent: Monday, February 23, 2004 12:35 PM
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] ANT Sleep and WaitFor calls
>
>
> Jeannie,
>
> I believe you must add the following line to webtestTaskdefs.properties
>     sleep=com.canoo.webtest.extension.Sleep
>
> Then you can use the "internal" version of sleep, as follows:
>    <steps>
>         .
>         .
>         <sleep
>              stepid="starting a 10 second wait"
>              seconds="10" />
>         .
>         .
>     </steps>
>
> Regards,
>
> Terry
>
>
> ----- Original Message -----
> From: "Jeannie Graham" <Jgraham@arrowheadgrp.com>
> To: <webtest@lists.canoo.com>
> Sent: Monday, February 23, 2004 12:05 PM
> Subject: RE: [Webtest] ANT Sleep and WaitFor calls
>
>
> > Thanks for responding, but I am still not quite understanding.   I get
> that
> > it can't be in the <steps> area, but I don't understand how to make my
own
> > subclass for "Step".   Do I need to make a seperate xml file (with task
> > structure and Sleep) and then call it, using the antcall command?
> >
> > Thanks for your time,
> > Jeannie
> >
> > -----Original Message-----
> > From: Marc Guillemot [mailto:mguillemot@yahoo.fr]
> > Sent: Friday, February 20, 2004 1:16 AM
> > To: webtest@lists.canoo.com
> > Subject: Re: [Webtest] ANT Sleep and WaitFor calls
> >
> >
> > Currently only Webtest Steps can be contained within a <steps>,
therefore
> I
> > guess you have to write your own Step subclass performing a Sleep or a
> > WaitFor
> > action.
> >
> > Personally, I think that we should refactorate Webtest to allow
arbitrary
> > ant
> > tasks to be contained in <steps>.
> > Mittie and the other committers: do you mean that it makes sense or am I
> > dreaming?
> >
> > Marc.
> >
> >
> > Jeannie Graham wrote:
> > > Hello Group,
> > >
> > > I need to use either the Sleep call or the WaitFor call in my Canoo
> > > scripts, but I keep running into build errors around both calls:
> > >
> > > "Task must be of type "Step"
> > >
> > > I have it inside a <target> and a <testSpec> and <steps> commands.
I'm
> > > sure this is remedial, so please forgive me, I'm new at all this.
> > >
> > > Thank you for your time,
> > > Jeannie Graham
> > > _______________________________________________
> > > 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
> > _______________________________________________
> > 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
> _______________________________________________
> 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