Autopilot test failure

Bug #1285279 reported by Alan Pope 🍺🐧🐱 🦄 on 2014-02-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sudoku App

Bug Description

I was testing r161 today and every time I ran the AP tests on a nexus 4 it fails. I can't get 100% pass. Can someone take a look? Full log attached.

Traceback (most recent call last):
File "/home/phablet/autopilot/sudoku_app/tests/", line 328, in test_settings_tab
myProfile = self.main_view.get_Myfirstname_Mylastname_profile()
File "/home/phablet/autopilot/sudoku_app/", line 85, in get_Myfirstname_Mylastname_profile
return self.select_single("Standard", text="Myfirstname Mylastname")
File "/usr/lib/python2.7/dist-packages/autopilot/introspection/", line 322, in select_single
raise StateNotFoundError(type_name, **kwargs)
StateNotFoundError: State not found for class 'Standard' and filters {'text': 'Myfirstname Mylastname'}.

Ran 7 tests in 275.835s
FAILED (failures=1)

Related branches

Will look into this. I seems that it fails on this line:

self.select_single("Standard", text="Myfirstname Mylastname")

Which basically is the part of adding new profile test. Unfortunatelly, autopilot doesn't work on desktop at all. But I'll try it in emulator.

Nicholas Skaggs (nskaggs) wrote :

Dinko, this means you are attempting to grab the object before it exists. A simple fix without looking at the code would be to turn the select_single into a wait_select_single. Alternatively or in addition, you could ensure the object exists before selecting it by waiting for the screen to load, etc.

Fix committed into lp:sudoku-app at revision 171, scheduled for release in sudoku-app, milestone Unknown

Changed in sudoku-app:
status: New → Fix Committed

Fix committed into lp:sudoku-app at revision 172, scheduled for release in sudoku-app, milestone Unknown

Tested r172 and it also fails.

Nicholas Skaggs (nskaggs) wrote :

This passes for me, running r244. What did the test visually show? Did the dialog stay on the screen forever?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments