O'Reilly logo

Plone 3 Products Development Cookbook by Marcos F. Romero, Juan Pablo Giménez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Selenium functional tests

Selenium functional tests may be rarely used, but they are very useful if we are to test user interactions using JavaScript, like Ajax-based components in our user interface.

Plone supports Selenium tests in two different ways:

  • collective.ploneseltest package provides a PloneTestCase-like class to run Selenium tests. With this approach, tests behave like regular Zope functional tests. A Zope instance is started with an empty ZODB and a new Plone site. Selenium RC must be installed separately.
  • rcom.recipe.selenium recipe installs Selenium RC and creates a test runner. All tests must be run in a living and existing Plone site.

We'll look at the second alternative because it shows a new mode to run tests in existing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required