-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Plone 3 Products Development Cookbook
Sel enium 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 Plone sites, which might have already created content and it will be available in further test runs.
To record and run a Selenium test we must install both Selenium IDE and Selenium RC. Find installation instructions in the There's more...
Change the font size
Change margin width
Change background colour