selenium test will not pass with new Firefox

Bug #1364713 reported by Blake Rouse
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Blake Rouse

Bug Description

The following tests have been disable, because they fail with the newest Firefox. When a new selenium is released then these test can be re-enabled.

======================================================================
ERROR: test suite for <class 'maasserver.views.tests.test_nodes.NodeListingBulkActionSelectionTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/suite.py", line 208, in run
    self.setUp()
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/util.py", line 469, in try_run
    return func()
  File "/home/blake/Code/multipart-image-upload/src/maasserver/testing/testcase.py", line 161, in setUpClass
    cls.selenium = WebDriver()
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/webdriver.py", line 59, in __init__
    self.binary, timeout),
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__
    self.binary.launch_browser(self.profile)
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 61, in launch_browser
    self._wait_until_connectable()
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 105, in _wait_until_connectable
    self.profile.path, self._get_firefox_output()))
WebDriverException: Message: 'Can\'t load the profile. Profile Dir: /tmp/tmpBdr6fJ Firefox output: \n(process:19873): GLib-CRITICAL **: g_slice_set_config: assertion \'sys_page_size == 0\' failed\nXlib: extension "RANDR" missing on display ":99".\n\n(firefox:19873): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised\n\n(firefox:19873): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised\n\n(firefox:19873): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised\n\n(firefox:19873): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised\n1409710896752\taddons.manager\tDEBUG\tLoaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]\n1409710896754\taddons.manager\tDEBUG\tLoaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]\n1409710896756\taddons.xpi\tDEBUG\tstartup\n1409710896757\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/lib/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409710896757\taddons.xpi\tINFO\tMapping {2e1445b0-2682-11e1-bfc2-0800200c9a66} to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{2e1445b0-2682-11e1-bfc2-0800200c9a66}\n1409710896757\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409710896758\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409710896758\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409710896758\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409710896759\taddons.xpi\tINFO\tMapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}\n1409710896759\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409710896760\taddons.xpi\tDEBUG\tcheckForChanges\n1409710896781\taddons.xpi\tDEBUG\tNo changes found\n1409710896785\taddons.xpi\tDEBUG\tRegistering manifest for /<email address hidden>\n1409710896786\taddons.xpi\tDEBUG\tRegistering manifest for /<email address hidden>\n*** Blocklist::_preloadBlocklistFile: blocklist is disabled\n'

======================================================================
ERROR: test suite for <class 'maasserver.views.tests.test_nodes.NodeListingSelectionJSControls'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/suite.py", line 208, in run
    self.setUp()
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/util.py", line 469, in try_run
    return func()
  File "/home/blake/Code/multipart-image-upload/src/maasserver/testing/testcase.py", line 161, in setUpClass
    cls.selenium = WebDriver()
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/webdriver.py", line 59, in __init__
    self.binary, timeout),
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__
    self.binary.launch_browser(self.profile)
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 61, in launch_browser
    self._wait_until_connectable()
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 105, in _wait_until_connectable
    self.profile.path, self._get_firefox_output()))
WebDriverException: Message: 'Can\'t load the profile. Profile Dir: /tmp/tmpsihTaP Firefox output: \n(process:20535): GLib-CRITICAL **: g_slice_set_config: assertion \'sys_page_size == 0\' failed\nXlib: extension "RANDR" missing on display ":100".\n\n(firefox:20535): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised\n\n(firefox:20535): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised\n\n(firefox:20535): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised\n\n(firefox:20535): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised\n1409710928415\taddons.manager\tDEBUG\tLoaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]\n1409710928417\taddons.manager\tDEBUG\tLoaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]\n1409710928419\taddons.xpi\tDEBUG\tstartup\n1409710928420\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/lib/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409710928421\taddons.xpi\tINFO\tMapping {2e1445b0-2682-11e1-bfc2-0800200c9a66} to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{2e1445b0-2682-11e1-bfc2-0800200c9a66}\n1409710928421\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409710928421\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409710928422\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409710928422\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409710928422\taddons.xpi\tINFO\tMapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}\n1409710928423\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409710928423\taddons.xpi\tDEBUG\tcheckForChanges\n1409710928441\taddons.xpi\tDEBUG\tNo changes found\n1409710928445\taddons.xpi\tDEBUG\tRegistering manifest for /<email address hidden>\n1409710928446\taddons.xpi\tDEBUG\tRegistering manifest for /<email address hidden>\n*** Blocklist::_preloadBlocklistFile: blocklist is disabled\n'

======================================================================
ERROR: test suite for <class 'maasserver.views.tests.test_nodes.NodeProbedDetailsExpanderTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/suite.py", line 208, in run
    self.setUp()
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/home/blake/.buildout/eggs/nose-1.3.1-py2.7.egg/nose/util.py", line 469, in try_run
    return func()
  File "/home/blake/Code/multipart-image-upload/src/maasserver/testing/testcase.py", line 161, in setUpClass
    cls.selenium = WebDriver()
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/webdriver.py", line 59, in __init__
    self.binary, timeout),
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__
    self.binary.launch_browser(self.profile)
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 61, in launch_browser
    self._wait_until_connectable()
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 105, in _wait_until_connectable
    self.profile.path, self._get_firefox_output()))
WebDriverException: Message: 'Can\'t load the profile. Profile Dir: /tmp/tmp7qw5mj Firefox output: \n(process:21592): GLib-CRITICAL **: g_slice_set_config: assertion \'sys_page_size == 0\' failed\nXlib: extension "RANDR" missing on display ":101".\n\n(firefox:21592): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised\n\n(firefox:21592): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised\n\n(firefox:21592): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised\n\n(firefox:21592): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised\n1409710959847\taddons.manager\tDEBUG\tLoaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]\n1409710959848\taddons.manager\tDEBUG\tLoaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]\n1409710959850\taddons.xpi\tDEBUG\tstartup\n1409710959851\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/lib/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409710959852\taddons.xpi\tINFO\tMapping {2e1445b0-2682-11e1-bfc2-0800200c9a66} to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{2e1445b0-2682-11e1-bfc2-0800200c9a66}\n1409710959852\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409710959852\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409710959853\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409710959853\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409710959853\taddons.xpi\tINFO\tMapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}\n1409710959854\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409710959854\taddons.xpi\tDEBUG\tcheckForChanges\n1409710959873\taddons.xpi\tDEBUG\tNo changes found\n1409710959877\taddons.xpi\tDEBUG\tRegistering manifest for /<email address hidden>\n1409710959878\taddons.xpi\tDEBUG\tRegistering manifest for /<email address hidden>\n*** Blocklist::_preloadBlocklistFile: blocklist is disabled\n'

======================================================================
ERROR: maasserver.tests.test_js.YUIUnitTestsLocal.test_YUI3_unit_tests
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/blake/Code/multipart-image-upload/src/maasserver/tests/test_js.py", line 148, in __call__
    self.multiply(result)
  File "/home/blake/Code/multipart-image-upload/src/maasserver/tests/test_js.py", line 183, in multiply
    with SSTFixture(browser_name):
  File "/home/blake/.buildout/eggs/fixtures-0.3.14-py2.7.egg/fixtures/fixture.py", line 130, in __enter__
    self.setUp()
  File "/home/blake/Code/multipart-image-upload/src/maastesting/fixtures.py", line 128, in setUp
    start(self.browser_name)
  File "/home/blake/.buildout/eggs/sst-0.2.2-py2.7.egg/sst/actions.py", line 200, in start
    browser = getattr(webdriver, browser_type)(profile)
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/webdriver.py", line 59, in __init__
    self.binary, timeout),
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__
    self.binary.launch_browser(self.profile)
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 61, in launch_browser
    self._wait_until_connectable()
  File "/home/blake/.buildout/eggs/selenium-2.42.1-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 105, in _wait_until_connectable
    self.profile.path, self._get_firefox_output()))
WebDriverException: Message: 'Can\'t load the profile. Profile Dir: /tmp/tmpcAgnSC Firefox output: \n(process:21823): GLib-CRITICAL **: g_slice_set_config: assertion \'sys_page_size == 0\' failed\nXlib: extension "RANDR" missing on display ":102".\n\n(firefox:21823): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised\n\n(firefox:21823): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised\n\n(firefox:21823): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised\n\n(firefox:21823): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised\n1409711001116\taddons.manager\tDEBUG\tLoaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]\n1409711001118\taddons.manager\tDEBUG\tLoaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]\n1409711001120\taddons.xpi\tDEBUG\tstartup\n1409711001121\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/lib/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409711001122\taddons.xpi\tINFO\tMapping {2e1445b0-2682-11e1-bfc2-0800200c9a66} to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{2e1445b0-2682-11e1-bfc2-0800200c9a66}\n1409711001122\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409711001122\taddons.xpi\tINFO\tMapping <email address hidden> to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>\n1409711001123\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409711001123\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409711001123\taddons.xpi\tINFO\tMapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}\n1409711001124\taddons.xpi\tINFO\tMapping <email address hidden> to /<email address hidden>\n1409711001124\taddons.xpi\tDEBUG\tcheckForChanges\n1409711001142\taddons.xpi\tDEBUG\tNo changes found\n1409711001146\taddons.xpi\tDEBUG\tRegistering manifest for /<email address hidden>\n1409711001147\taddons.xpi\tDEBUG\tRegistering manifest for /<email address hidden>\n*** Blocklist::_preloadBlocklistFile: blocklist is disabled\n'
-------------------- >> begin captured stdout << ---------------------

    Starting browser: Firefox

--------------------- >> end captured stdout << ----------------------

Tags: tech-debt

Related branches

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Selenium 2.43.0 was released yesterday, we should try it out and see if it works.

Revision history for this message
David Britton (dpb) wrote :

FYI -- We upgraded our selenium to 2.43.0, and it addressed the issue.

Changed in maas:
assignee: nobody → Jeroen T. Vermeulen (jtv)
status: Triaged → In Progress
Changed in maas:
assignee: Jeroen T. Vermeulen (jtv) → Blake Rouse (blake-rouse)
milestone: none → 1.7.0
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.