← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1294181] Re: Autopilot tests crashing in switch_to_tab helper

 

Upstream bug regarding the original crasher https://bugreports.qt-
project.org/browse/QTBUG-37303

** Also affects: qtdeclarative-opensource-src (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtdeclarative-opensource-src in
Ubuntu.
https://bugs.launchpad.net/bugs/1294181

Title:
  Autopilot tests crashing in switch_to_tab helper

Status in Calendar application for Ubuntu devices:
  Fix Committed
Status in “qtdeclarative-opensource-src” package in Ubuntu:
  New

Bug description:
  This bug is blocking bug #1293489 fix from landing.

  EDIT: It seems like the other tabs also suffer from this issue, so
  it's not just dayview

  Have a look at the following log to see this:

  http://91.189.93.70:8080/job/generic-mediumtests-
  trusty/1783/testReport/junit/calendar_app.tests.test_dayview/TestDayView/test_show_current_days_with_mouse_/

  You can reproduce by checking out trunk and running any of the
  test_dayview tests. The app will hang trying to switch to the dayview
  tab and the test will fail.

  Traceback for this looks like this. It seemingly indicates something
  is wrong with the toolkit helper switch_to_tab. However the toolkit
  tests pass on the same install and the crashing behavior seems limited
  to calendar and in particular the dayview tab.

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/calendar_app/tests/test_dayview.py", line 31, in setUp
      self.main_view.switch_to_tab("dayTab")
    File "/usr/lib/python2.7/dist-packages/autopilot/logging.py", line 46, in inner
      return f(instance, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/ubuntuuitoolkit/emulators.py", line 187, in switch_to_tab
      return self.switch_to_tab_by_index(tab.index)
    File "/usr/lib/python2.7/dist-packages/autopilot/logging.py", line 46, in inner
      return f(instance, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/ubuntuuitoolkit/emulators.py", line 156, in switch_to_tab_by_index
      current_tab = self.switch_to_next_tab()
    File "/usr/lib/python2.7/dist-packages/autopilot/logging.py", line 46, in inner
      return f(instance, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/ubuntuuitoolkit/emulators.py", line 127, in switch_to_next_tab
      self.get_header().switch_to_next_tab()
    File "/usr/lib/python2.7/dist-packages/autopilot/logging.py", line 46, in inner
      return f(instance, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/ubuntuuitoolkit/emulators.py", line 230, in switch_to_next_tab
      self._get_animating().wait_for(False)
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/types.py", line 158, in wait_for
      _, new_state = self.parent.get_new_state()
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 560, in get_new_state
      return self.get_state_by_path(self.get_class_query_string())[0]
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 540, in get_state_by_path
      data = self._backend.introspection_iface.GetState(piece)
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/backends.py", line 101, in introspection_iface
      "Application under test exited before the test finished!"
  RuntimeError: Application under test exited before the test finished!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-calendar-app/+bug/1294181/+subscriptions