Improve the StateNotFound error message

Bug #1269649 reported by Leo Arias
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Autopilot
Fix Released
Medium
Nicholas Skaggs
autopilot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

We are currently raising exceptions like:
StateNotFoundError: State not found for class '*' and filters {'objectName': 'popoversElement'}

While it might be clear for people that know the autopilot internals, it mentions a state, a class and some filters that outsiders might not understand on the first read.

We should make it clearer. Here's thomi's suggestion:

Object not found with name 'ABC' and properties: foo=bar, baz=123
or:
Object not found with properties foo=bar, baz=123 (in the case where no object name was specified)

Tags: elopio

Related branches

Changed in autopilot:
importance: Low → Medium
Changed in autopilot:
assignee: nobody → Nicholas Skaggs (nskaggs)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopilot - 1.4+14.04.20140303-0ubuntu1

---------------
autopilot (1.4+14.04.20140303-0ubuntu1) trusty; urgency=low

  [ Thomi Richards ]
  * Prepare functional tests so that they can run on a device (Skips any
    that cannot run on a device).
  * Make proxy object attributes look more pythonic when calling
    repr(...) or str(...) on them. (LP: #1279977)

  [ Nicholas Skaggs ]
  * Fix the veribage for statenotfound errors, fixes
    https://bugs.launchpad.net/autopilot/+bug/1269649 (LP: #1269649)

  [ nskaggs ]
  * Fix the veribage for statenotfound errors, fixes
    https://bugs.launchpad.net/autopilot/+bug/1269649 (LP: #1269649)

  [ Christopher Lee ]
  * Prepare functional tests so that they can run on a device (Skips any
    that cannot run on a device).
 -- Ubuntu daily release <email address hidden> Mon, 03 Mar 2014 04:38:08 +0000

Changed in autopilot (Ubuntu):
status: New → Fix Released
Changed in autopilot:
status: Confirmed → Invalid
status: Invalid → Fix Released
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.