[Webtest] ANT Sleep and WaitFor calls

Terry Steichen webtest@lists.canoo.com
Mon, 23 Feb 2004 15:35:21 -0500


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
>