You are here: Home Plone products collective.ploneseltest

collective.ploneseltest (1.0)

1
by Olha Pelishok last modified 2009-10-09
0.0
0.0
0.0
0.0
Released on 2009-10-08 by Martin Aspeli for Plone 3.0 under LGPL - GNU Lesser General Public License available for All platforms.
Software development stage: beta
Selenium test support for Plone

This package provides a PloneTestCase-like class for running Selenium tests.

It requires that you have Selenium RC (http://selenium-rc.openqa.org) running whilst the tests are running. The current version of the Python 'selenium' library (which is an automatically installed dependency of this package) seems to work best with Selenium RC 0.9.2. Once downloaded, run it with:  $ java -jar selenium-server.jar

See test_example.py for an example of a test that sets up a Plone site and runs a simple test.
See testcase.py for more information about the convenience methods contained in the SeleniumTestCase base class and the layer it uses to configure Selenium. You may want to use a custom layer derived from this one if you need to manage the Selenium Server information more carefully.

Note that you can set the following environment variables to affect where the Selenium driver looks for the Selenium RC server:

  • SELENIUM_HOST, the hostname (default to "localhost")
  • SELENIUM_PORT, the hostname (default to "localhost")
  • SELENIUM_BROWSER, the browser to launch (default to "*chrome")

 

Document Actions
Powered by Plone