test_uninstall_application randomly fails with CPO error

Bug #1438584 reported by Richard Huddie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-system-tests
New
Undecided
Unassigned

Bug Description

test_uninstall_application randomly fails with the following error:

Traceback (most recent call last):
File "/home/phablet/dev/fix/ubuntu_sanity_tests/tests/test_uninstall_application.py", line 61, in test_uninstall_application
self.assertIn('simpleclick', apps_scope.get_applications('local'))
File "/usr/lib/python3/dist-packages/autopilot/introspection/dbus.py", line 416, in getattr
(self.class.name, name))
AttributeError: Class 'GenericScopeView' has no attribute 'get_applications'.

Most of the time the test works correctly, but this error sometimes makes it incorrectly fail.

The get_applications method is defined in the helper class, so for some reason it is randomly failing to inherit this method.

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Should we call out a specific test here? It seems like a general issue with GenericScopeView. I've also seen such traceback as:

Traceback (most recent call last):
  File "/tmp/adt-run.vGbXyz/build.wbo/real-tree/ubuntu_sanity_tests/tests/test_with_webbrowser.py", line 104, in test_014_webbrowser
    apps_scope.click_scope_item('predefined', 'Browser')
  File "/tmp/adt-run.vGbXyz/deps/usr/lib/python3/dist-packages/autopilot/introspection/dbus.py", line 416, in __getattr__
    (self.__class__.__name__, name))
AttributeError: Class 'GenericScopeView' has no attribute 'click_scope_item'.

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.