collective.ploneseltest (1.0)
- collective.ploneseltest download link: http://pypi.python.org/packages/2.4/c/collective.ploneseltest/collective.ploneseltest-1.0b1-py2.4.egg#md5=72b07b232dceebf669df9248a7c57c44
- Homepage of collective.ploneseltest: http://pypi.python.org/pypi/collective.ploneseltest
- Description source: http://pypi.python.org/pypi/collective.ploneseltest
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")