Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

TutorialTest with zc.testbrowser.real

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


gns24 at mythic-beasts

Jul 1, 2008, 8:25 PM

Post #1 of 2 (212 views)
Permalink
TutorialTest with zc.testbrowser.real

Hi all,

I currently need to write a tutorial for how to use the web
application which I've been developing. I'd really like to be able to
produce something testable, in a doctest-like way.

My best idea so far is to build something based on
zc.testbrowser.real, incorporating the ability to display comments on
the screen and to pause for some amount of time/until the user clicks
the mouse. The tutorial would need to run as a standard test (using
zc.testbrowser.browser?) when run from the test runner, but in human-
friendly mode when run as a tutorial.

I'm guessing that something like this would be very useful to many
people; so much so that I'd expect something similar to have been done
before. Is this the case? I have concerns about getting the tutorial
to run against an existing ZODB without making modifications to it. I
think there's some kind of storage which can wrap an existing storage,
can anyone point me the right way?

I think Stephan and others had some ideas along these lines at the
Foliage Sprint. I'd be grateful for your thoughts before I get started.

Thanks,

Graham
_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


benji at zope

Jul 2, 2008, 5:14 AM

Post #2 of 2 (190 views)
Permalink
Re: TutorialTest with zc.testbrowser.real [In reply to]

On Tue, Jul 1, 2008 at 11:25 PM, Graham Stratton
<gns24[at]mythic-beasts.com> wrote:
> Hi all,
>
> I currently need to write a tutorial for how to use the web application
> which I've been developing. I'd really like to be able to produce something
> testable, in a doctest-like way.
>
> My best idea so far is to build something based on zc.testbrowser.real,

Note that zc.testbrowser.real is experimental -- i.e. its API will most
certainly change and it may even be discontinued entirely.

> I have concerns about getting the tutorial to run against an
> existing ZODB without making modifications to it. I think there's some kind
> of storage which can wrap an existing storage, can anyone point me the right
> way?

You may be referring to demostorage
(http://pypi.python.org/pypi/zc.demostorage2).
--
Benji York
Senior Software Engineer
Zope Corporation
_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.