← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1290329] [NEW] Add option to run Selenium tests headless

 

Public bug reported:

Selenium tests by default need a display and a browser driver for setup.
If no display settings are provided then the native display is used.
But if you run the tests on Jenkins or on a Vagrant machine, you usually want to run them headless.

In the setUp method of the BaseTestCase class, we define the Selenium webdriver. Tests inherit from this class.
We can set an environment constant named WITH_DISPLAY to check, if we should start a headless session or not. 
The default value should be True, which means that we run the tests with head = display.
If is False we can use https://pypi.python.org/pypi/xvfbwrapper/0.1.2 to start a headless session.

** Affects: horizon
     Importance: Undecided
     Assignee: Maria Nita (maria-nita-dn)
         Status: In Progress

** Changed in: horizon
     Assignee: (unassigned) => Maria Nita (maria-nita-dn)

** Changed in: horizon
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1290329

Title:
  Add option to run Selenium tests headless

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  Selenium tests by default need a display and a browser driver for setup.
  If no display settings are provided then the native display is used.
  But if you run the tests on Jenkins or on a Vagrant machine, you usually want to run them headless.

  In the setUp method of the BaseTestCase class, we define the Selenium webdriver. Tests inherit from this class.
  We can set an environment constant named WITH_DISPLAY to check, if we should start a headless session or not. 
  The default value should be True, which means that we run the tests with head = display.
  If is False we can use https://pypi.python.org/pypi/xvfbwrapper/0.1.2 to start a headless session.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1290329/+subscriptions


Follow ups

References