django-nose-selenium icondjango-nose-selenium 0.7.3

A nose plugin to run selenium tests with Django
django-nose-selenium is a Django app to run selenium smoothly with nose.

Django Settings

The plugin supports the following settings:

 * SELENIUM_HOST, default: 127.0.0.1
 * SELENIUM_PORT, default: 4444
 * SELENIUM_BROWSER_COMMAND, default: chrome
 * SELENIUM_URL_ROOT, default: http://127.0.0.1:8000
 * FORCE_SELENIUM_TESTS, default: False. By default, SocketErrors cause the tests to be skipped. This options causes the tests to fail when the Selenium server is unavailable.

Usage

Define the class variable selenium_test = True in your nose test class and run nosetests --with-selenium. You can use self.selenium to access a selenium instance with the given options:

class TestSelenium(TestCase):

 selenium_test = True

 def test_start(self):
 """Tests the start page."""

 self.selenium.open("/")

last updated on:
August 16th, 2011, 4:25 GMT
price:
FREE!
developed by:
Pascal Hartig
license type:
BSD License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating 1

UNRATED
5.0/5
 

0/5

Add your review!

SUBMIT