[Zope-dev] RE: [Zope] Idea: ZTest: Integrated Use-case based web site testin g. testin g.

Martijn Pieters mj@antraciet.nl
Fri, 27 Aug 1999 11:32:38 +0200


At 10:59 27/08/99 , Alexander Staubo wrote:
> > -----Original Message-----
> > From: Martijn Pieters [mailto:mj@antraciet.nl]
> > Sent: 27. august 1999 10:18
> > To: Alexander Staubo; Zope Mailing List (E-mail)
> > Subject: RE: [Zope] Idea: ZTest: Integrated Use-case based web site
> > testin g.
>
>[snip]
> > >Who writes this thing? This being an open source
> > initiative(TM), I'm all
> > >for chipping in. Anyone want to join the Scheduler Task Force?
> >
> > Well, we are getting a nice list of requirements already =).
> > Anyone having
> > some list space? Or shall we just move over to Zope-Dev?
>
>I have list space to spare, but I don't think this is big enough for a
>long-winded discussion -- let's implement rather than jerk off. ;)
>
>If you're interested, Martijn, we two can kick off this one. Or, we can
>set up a list and start jerking off. ;)

Okidoki, let's do this then. I'll move this thread to Zope-dev too.

First some jerking to get things straight:

I still think we should do the scheduler with a queue, we can always 
convert to multiple threads later. Let's keep it simple and expand.

Scheduled Event objects are to be based on DTML Methods with some extra 
properties to set up frequence, etc.

The Scheduler is a Folder object that only allows Event objects to be 
added. At least, I haven't thought of any scenario where it would be useful 
to add anything else.

I am still thinking of a queue implementation, where worker threads pick 
off events to execute. Events are inserted into the queue based on who's 
next to be executed.

An event has only one reference in the queue, and is put back on after 
execution (so long running methods that are scheduled to run every second 
won't get executed that often).

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------