Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#29883 closed New feature (fixed)

Support running remote Selenium tests with runtests.py

Reported by: Tom Forbes Owned by: Tom Forbes
Component: Testing framework Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tom Forbes)

Currently runtests.py supports running Selenium tests using a local browser only. This can make running tests against specific versions quite hard.

Selenium supports a feature called 'hub': https://github.com/SeleniumHQ/docker-selenium/wiki/Getting-Started-with-Docker-Compose#python. This allows you to spin up multiple different browsers as docker containers, or connect to remote cloud-hosted ones.

A hub backed webdriver is compatible with a local one, so no tests need to be updated. A flag could be added to runtests.py specifying a hub URL, and then a WebDriver is created from that URL.

Change History (7)

comment:1 by Tom Forbes, 6 years ago

Description: modified (diff)

comment:2 by Tim Graham, 6 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Tom Forbes, 6 years ago

PR: https://github.com/django/django/pull/10561

As part of this I had to extend the SeleniumTestCase to support being accessed externally.

Last edited 6 years ago by Tom Forbes (previous) (diff)

comment:4 by Tom Forbes, 6 years ago

Has patch: set

comment:5 by Tom Forbes, 6 years ago

Owner: changed from nobody to Tom Forbes
Status: newassigned

comment:6 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In d207ac1:

Fixed #29883 -- Added selenium hub support to runtests.py.

comment:7 by Tim Graham <timograham@…>, 6 years ago

In 1c948e54:

Refs #29883 -- Removed runtests.py's dependency on selenium.

Regression in d207ac1568bb4dee305f6692ed7ddee8a1ff8b99.

Note: See TracTickets for help on using tickets.
Back to Top