Autopilot test failure

Bug #1285279 reported by Alan Pope 🍺🐧🐱 🦄
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sudoku App
Fix Committed
Undecided
Unassigned

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/test_sudoku.py", line 328, in test_settings_tab
myProfile = self.main_view.get_Myfirstname_Mylastname_profile()
File "/home/phablet/autopilot/sudoku_app/emulators.py", line 85, in get_Myfirstname_Mylastname_profile
return self.select_single("Standard", text="Myfirstname Mylastname")
File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", 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

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
Dinko Osmankovic (dinko-metalac) wrote :

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.

Revision history for this message
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.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

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
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

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

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Tested r172 and it also fails.

http://paste.ubuntu.com/7088952/

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.