Add support for Selenium unit testing.

Review Request #1523 — Created April 21, 2010 and submitted

Information

Djblets
master

Reviewers

Add support for Selenium unit testing.

This adds support for easily adding Selenium unit tests to a test suite.
It contains a version of the Python Selenium driver for talking to a
Selenium RC server, and some functionality for starting/stopping a live
dev server.

Test suites can instantiate djblets.testing.SeleniumUnitTest and access
self.selenium in order to talk to the Selenium server. The test suite will
handle starting/stopping the dev server and the browser session. By default,
this attempts to reuse the dev server and browser session (which other
Selenium test suite implementations do not appear to do), though this can be
customized per-suite.
Built up a whole test suite in Review Board using this. It works beautifully.
david
  1. I don't see anything obviously wrong in here. Is selenium.py unmodified from its original version?
    1. Yeah, it's the exact upstream version.
  2. djblets/testing/testcases.py (Diff revision 1)
     
     
     
    I know it would mean > 80, but this wrapping is silly.
    
    Either that, or put the % (...) on the next line.
  3.