click_element() sometimes fails if list item not visible/created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
grab this branch lp:~om26er/ubuntu-system-settings/add_ringtone_test and try to run the below test:
ubuntu_
The test fails on the nexus 4 because the element goes out of screen due to auto-scroll.
test-log: {{{
13:40:38.061 INFO globals:58 - *******
13:40:38.061 INFO globals:59 - Starting test ubuntu_
13:40:38.063 WARNING testcase:116 - No tracing available - install the python-
13:40:38.242 WARNING testcase:157 - Process manager backend unavailable, application snapshot support disabled.
13:40:38.243 INFO testcase:339 - Attempting to launch application 'ubuntu-
13:41:06.518 ERROR proxies:410 - Introspect error on :1.317:
13:41:06.524 DEBUG proxies:413 - Executing introspect queue due to error
13:41:31.643 DEBUG dbus:433 - Selecting objects of type MainWindow with attributes: {}
13:41:31.713 DEBUG dbus:433 - Selecting objects of type MainWindow with attributes: {}
13:41:31.743 INFO logging:45 - MainWindow: Open the sound settings page. Arguments (). Keyword arguments: {}.
13:41:31.745 DEBUG dbus:433 - Selecting objects of type EntryComponent with attributes: {'objectName': 'entryComponent
13:41:32.056 DEBUG dbus:433 - Selecting objects of any type with attributes: {'objectName': 'systemSettings
13:41:32.488 DEBUG _common:45 - Moving to object's globalRect coordinates.
13:41:32.488 DEBUG _uinput:475 - Tapping at: 298,753
13:41:32.591 DEBUG dbus:433 - Selecting objects of type ItemPage with attributes: {'objectName': 'soundPage'}
13:41:36.927 INFO logging:45 - ItemPage: Open the ringtone selector. Arguments (). Keyword arguments: {}.
13:41:36.928 DEBUG dbus:433 - Selecting objects of type SingleValue with attributes: {'objectName': 'ringtoneListItem'}
13:41:38.694 DEBUG _common:45 - Moving to object's globalRect coordinates.
13:41:38.695 DEBUG _uinput:475 - Tapping at: 384,397
13:41:39.747 DEBUG dbus:433 - Selecting objects of type SoundsList with attributes: {}
13:41:39.823 INFO logging:45 - SoundsList: Choose a new ringtone. Arguments ('Celestial',). Keyword arguments: {}.
13:41:39.824 DEBUG dbus:433 - Selecting objects of type QQuickListView with attributes: {'objectName': 'listView'}
13:41:41.415 INFO logging:45 - QQuickListView: Click an element from the list. Arguments ('ringtone-
13:41:41.416 DEBUG dbus:433 - Selecting objects of any type with attributes: {'objectName': 'ringtone-
13:41:41.862 INFO logging:45 - QQuickListView: Make the child visible. Arguments (<autopilot.
}}}
Traceback (most recent call last):
File "/usr/lib/
current_
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/usr/lib/
list_
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/usr/lib/
if not self._is_
File "/usr/lib/
object_center = child.globalRect.y + child.globalRec
File "/usr/lib/
self.
File "/usr/lib/
_, new_state = self.get_
File "/usr/lib/
raise StateNotFoundEr
StateNotFoundError: Object not found with name 'OptionSelector
Ran 1 test in 65.959s
FAILED (failures=1)
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: ubuntu-
Uname: Linux 3.4.0-5-mako armv7l
ApportVersion: 2.14.3-0ubuntu2
Architecture: armhf
Date: Mon Jun 30 13:42:18 2014
InstallationDate: Installed on 2014-06-30 (0 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140630-020204)
PackageArchitec
SourcePackage: ubuntu-ui-toolkit
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | ubuntu-ui-toolkit (Ubuntu) → ubuntu-ui-toolkit |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Incomplete |
no longer affects: | ubuntu-ui-toolkit |
Is this still an issue? A specific test case would be nice as the aforementioned branch requires a lot of knowledge of the tests and how the app is built.