#2879: Add live test server support to test framework -------------------------------------+------------------------------------- Reporter: Mikeal Rogers | Owner: devin <mikeal@…> | Status: new Type: New feature | Version: Component: Testing framework | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: | Needs documentation: 0 Has patch: 1 | Patch needs improvement: 1 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by jezdez): Interesting patch indeed, I have a few issue I'd like to see fixed first though: - In `AdminSeleniumWebDriverTestCase` (shorter name?) the `setUp` method re-imports and instantiates the webdriver for every test method. Using the setUpClass class method would be preferred (unless I'm missing some need for resetting it all the time). - The new `LIVE_TEST_SERVER_HOST` and `LIVE_TEST_SERVER_PORT` settings are much too specific for Selenium (including the fact that "http" is hardcoded in `LiveServerTestCase`). I suggest introducing justa `LIVE_TEST_SERVER` setting instead and ask the users to give it a full URL, e.g. 'http://localhost/8081/'). Even though we have separate settings for email servers (`EMAIL_HOST` and `EMAIL_PORT`) the live test server has a lax API and shouldn't be hardwired to require protocol, host and port. - The docs don't mention how to run the Selenium based tests except installing the selenium Python library. I suggest to add a small section about how to get Selenium to run in the first place (basically only where to download and how to run, like mentioned on http://pypi.python.org/pypi/selenium). Other than that this looks good to me. -- Ticket URL: <https://code.djangoproject.com/ticket/2879#comment:76> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.