test_uninstall_application randomly fails with CPO error

Bug #1438584 reported by Richard Huddie on 2015-03-31
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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.

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  Edit
Everyone can see this information.

Other bug subscribers