All integration tests will be failed during the test case teardown because of log out exception

Bug #1391890 reported by Wu Hong Guang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Wu Hong Guang

Bug Description

Testing step:
1: git clone https://git.openstack.org/openstack-dev/devstack
2: cd devstack; ./stack.sh
3: ./run_tests.sh --integration

ERROR: openstack_dashboard.test.integration_tests.tests.test_password_change.TestPasswordChange.test_password_change
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/helpers.py", line 65, in tearDown
    self.home_pg.log_out()
  File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/basepage.py", line 46, in log_out
    self.topbar.logout_link.click()
  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 65, in click
    self._execute(Command.CLICK_ELEMENT)
  File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/webdriver.py", line 105, , in _execute
    return self._parent.execute(command, params)
  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 173, in execute
    self.error_handler.check_response(response)
  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 166, in check_response
    raise exception_class(message, screen, stacktrace)
ElementNotVisibleException: Message: Element is not currently visible and so may not be interacted with
Stacktrace:

Wu Hong Guang (whg)
summary: - integration_tests.pages.basepage a[href*="/auth/logout/"]
- ElementNotVisibleException
+ integration_tests.pages.basepage can't logout:ElementNotVisibleException
+ [href*="/auth/logout/"]
tags: added: integration-tests
Wu Hong Guang (whg)
summary: - integration_tests.pages.basepage can't logout:ElementNotVisibleException
- [href*="/auth/logout/"]
+ integration_tests.pages.basepage can't logout :
+ ElementNotVisibleException [href="/auth/logout"]
Wu Hong Guang (whg)
Changed in horizon:
assignee: nobody → Hong-Guang (whg)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/135273

Julie Pichon (jpichon)
Changed in horizon:
importance: Undecided → Medium
Revision history for this message
Wu Hong Guang (whg) wrote : Re: integration_tests.pages.basepage can't logout : ElementNotVisibleException [href="/auth/logout"]

I think this is a critical bug for integration test .

This bug causes all integration tests failure because the log out is called during the test case clean up,

Wu Hong Guang (whg)
summary: - integration_tests.pages.basepage can't logout :
- ElementNotVisibleException [href="/auth/logout"]
+ All integration tests will be failed during the test case teardown
+ because of log out exception
description: updated
Revision history for this message
Julie Pichon (jpichon) wrote :

I agree this is critical in the context of the integration tests, and we want to fix this ASAP in order to be able to run the tests on the gate. However in the greater context of the project, it is not as critical - no functionality is critically broken, it's not blocking patches from merging, etc.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/135273
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=313b49bc06301291181a637df60f50f56fd541ee
Submitter: Jenkins
Branch: master

commit 313b49bc06301291181a637df60f50f56fd541ee
Author: whg <email address hidden>
Date: Tue Nov 18 20:40:43 2014 +0800

    Integration test for fix the logout issue in basepage

    The logout button is not visible anymore after it moves
    to user profile dropdown menu.

    Closes-Bug: #1391890
    Closes-Bug: #1392598
    Partially implements blueprint: selenium-integration-testing
    Change-Id: Ib42137146edd174d11ba361d50aa3327db3f84ce

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → kilo-1
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-1 → 2015.1.0
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.