Selenium zodb?

View: New views
3 Messages — Rating Filter:   Alert me  

Selenium zodb?

by Peter Bengtsson :: Rate this Message:

| View Threaded | Show Only this Message

How can I run Zope in a non-persistent way so that all transactions are
aborted and so that I can run a big fat Selenium script in Firefox
without having to manually undo everything the Selenium script has done?
Kind of like ZopeTestCase works when you run it.

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
Zope maillist  -  Zope@...
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Re: Selenium zodb?

by Martin Aspeli :: Rate this Message:

| View Threaded | Show Only this Message


Peter Bengtsson wrote:
How can I run Zope in a non-persistent way so that all transactions are
aborted and so that I can run a big fat Selenium script in Firefox
without having to manually undo everything the Selenium script has done?
Kind of like ZopeTestCase works when you run it.
Considering that ZopeTestCase can, you *must* be able to. Look at how it sets up DemoStorage and the like. I don't know the specifics, though, and you may need your selenium scripts to call some hooks to set up and tear down test fixtures (not unreasonable in any case).

However, unless you're running demos or testing JS, I would suggest you look at zope.testbrowser. See http://plone.org/documentation/tutorial/testing.

Martin

Re: Selenium zodb?

by Chris Withers :: Rate this Message:

| View Threaded | Show Only this Message

Martin Aspeli wrote:

>
>
> Peter Bengtsson wrote:
>> How can I run Zope in a non-persistent way so that all transactions are
>> aborted and so that I can run a big fat Selenium script in Firefox
>> without having to manually undo everything the Selenium script has done?
>> Kind of like ZopeTestCase works when you run it.
>>
> Considering that ZopeTestCase can, you *must* be able to. Look at how it
> sets up DemoStorage and the like.

Yeah, probably just specify DemoStorage in zope.conf...

Chris

--
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk

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