Autopilot test fails in Autopilot plugin but works on command line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu SDK Autopilot Plugin |
New
|
Undecided
|
Unassigned |
Bug Description
When running this Clock app test:
TestAlarm.
on command line you do not get the failure that occurs running the same test in Qt Creator with the new Autopilot plugin.
I am running Wily and this version of the plugin: qtcreator-
In Qt Creator the test fails with this output:
Starting /usr/bin/
I: Running tests ubuntu_
I: Starting X Server: /usr/bin/Xephyr :5 -ac -br -noreset -screen 320x600x24
I: Starting autopilot
sudo: no tty present and no askpass program specified
Loading tests from: /home/letozaf/
Tests running...
Xlib.xauth: warning, no xauthority details available
<class 'Xlib.protocol.
initctl: Unknown job: maliit-server
sudo: no tty present and no askpass program specified
=======
ERROR: ubuntu_
-------
Binary content:
FailedTestScr
Empty attachments:
process-stdout (/usr/lib/
/var/log/syslog: {{{Jul 13 22:11:17 letozaf-PC kernel: [ 2450.664624] input: autopilot-finger as /devices/
process-return-code (/usr/lib/
process-stderr (/usr/lib/
Testability driver loaded. Wire protocol version is "1.4".
qml: [LOG]: Clock Page loaded
file://
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and actions.
qml: [LOG]: Alarm Page loaded
qml: [LOG]: Searching online for user location at http://
qml: [LOG]: Stopping geolocation update service
Source changed not found
Source changed not found
qml: [LOG]: Alarm Database loaded
qml: [LOG]: Alarm Database loaded
file://
file://
}}}
test-log: {{{
22:11:18.148 INFO logging:45 - TestClock: launch_test_local. Arguments (). Keyword arguments: {}.
22:11:18.148 WARNING base:52 - This function is deprecated. Use get_toolkit_
22:11:18.204 INFO _launcher:373 - Attempting to launch application '/usr/lib/
22:11:18.211 INFO _launcher:431 - Launching process: ['/usr/
22:11:21.390 INFO logging:45 - MainView: Open the Clock Page. Arguments (). Keyword arguments: {}.
22:11:21.704 INFO logging:45 - ClockPage: Swipe to reveal WorldCityList. Arguments (). Keyword arguments: {}.
22:11:21.734 DEBUG _common:45 - Moving to object's globalRect coordinates.
22:11:21.734 DEBUG _X11:350 - Moving mouse to position 160,423 with animation.
22:11:21.871 DEBUG _X11:393 - The mouse is now at position 160,423.
22:11:21.871 DEBUG _X11:304 - Pressing mouse button 1
22:11:21.973 DEBUG _X11:311 - Releasing mouse button 1
22:11:21.975 INFO logging:45 - MainView: Return the World City List page. Arguments (). Keyword arguments: {}.
22:11:22.310 INFO logging:45 - WorldCityList: Add world city by searching the world city name. Arguments ('Venice', 'Provincia di Venezia, Veneto, Italy'). Keyword arguments: {}.
22:11:22.555 DEBUG _common:45 - Moving to object's globalRect coordinates.
22:11:22.555 DEBUG _X11:350 - Moving mouse to position 292,28 with animation.
22:11:23.005 DEBUG _X11:393 - The mouse is now at position 292,28.
22:11:23.005 DEBUG _X11:304 - Pressing mouse button 1
22:11:23.106 DEBUG _X11:311 - Releasing mouse button 1
22:11:23.406 INFO _launcher:544 - waiting for process to exit.
22:11:23.406 INFO _launcher:567 - Killing process 18697
}}}
Traceback (most recent call last):
File "/home/
worldCityLi
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/home/
self.
File "/home/
"TextField", objectName=
File "/usr/lib/
return self.select_
File "/usr/lib/
instances = self._execute_
File "/usr/lib/
getattr(self, '_id', None),
File "/usr/lib/
for t in data
File "/usr/lib/
for t in data
File "/usr/lib/
return class_object(state, path, backend)
File "/usr/lib/
self.keyboard = _common.
File "/usr/lib/
if is_maliit_
File "/usr/lib/
return is_process_
File "/usr/lib/
return 'start/' in get_process_
File "/usr/lib/
"Unable to get {}'s status: {}".format(name, error)
ubuntuuitoolkit
Ran 1 test in 5.767s
FAILED (failures=1)
I: autopilot tests done
/usr/bin/
Starting /usr/bin/
I: Running tests ubuntu_
I: Starting X Server: /usr/bin/Xephyr :5 -ac -br -noreset -screen 320x600x24
I: Starting autopilot
sudo: no tty present and no askpass program specified
Loading tests from: /home/letozaf/
Tests running...
Xlib.xauth: warning, no xauthority details available
<class 'Xlib.protocol.
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
=======
FAIL: ubuntu_
-------
Binary content:
FailedTestScr
Empty attachments:
process-stdout (/usr/lib/
/var/log/syslog: {{{Jul 13 22:18:45 letozaf-PC kernel: [ 2898.067632] input: autopilot-finger as /devices/
process-return-code (/usr/lib/
process-stderr (/usr/lib/
Testability driver loaded. Wire protocol version is "1.4".
qml: [LOG]: Clock Page loaded
file://
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and actions.
qml: [LOG]: Alarm Page loaded
qml: [LOG]: Searching online for user location at http://
qml: [LOG]: Stopping geolocation update service
Source changed not found
Source changed not found
qml: [LOG]: Alarm Database loaded
qml: [LOG]: Alarm Database loaded
}}}
test-log: {{{
22:18:45.556 INFO logging:45 - TestAlarm: launch_test_local. Arguments (). Keyword arguments: {}.
22:18:45.556 WARNING base:52 - This function is deprecated. Use get_toolkit_
22:18:45.610 INFO _launcher:373 - Attempting to launch application '/usr/lib/
22:18:45.617 INFO _launcher:431 - Launching process: ['/usr/
22:18:48.465 INFO logging:45 - MainView: Open the Alarm Page. Arguments (). Keyword arguments: {}.
22:18:48.465 INFO logging:45 - MainView: Open the Clock Page. Arguments (). Keyword arguments: {}.
22:18:48.814 DEBUG _X11:350 - Moving mouse to position 159,552 with animation.
22:18:49.087 DEBUG _X11:393 - The mouse is now at position 159,552.
22:18:49.088 DEBUG _X11:304 - Pressing mouse button 1
22:18:49.092 DEBUG _X11:350 - Moving mouse to position 159,160 with animation.
22:18:51.184 DEBUG _X11:393 - The mouse is now at position 159,160.
22:18:51.184 DEBUG _X11:311 - Releasing mouse button 1
22:19:01.523 INFO _launcher:544 - waiting for process to exit.
22:19:01.524 INFO _launcher:567 - Killing process 19531
}}}
Traceback (most recent call last):
File "/home/
self.page = self.app.
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/home/
clockPage.
File "/home/
self.
File "/usr/lib/
failure_msg))
AssertionError: After 10.0 seconds test on ClockPage.isReady failed: True != dbus.Boolean(False, variant_level=1)
=======
FAIL: ubuntu_
-------
Binary content:
FailedTestScr
Empty attachments:
/var/log/syslog
process-stdout (/usr/lib/
process-return-code (/usr/lib/
process-stderr (/usr/lib/
Testability driver loaded. Wire protocol version is "1.4".
qml: [LOG]: Clock Page loaded
file://
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and actions.
qml: [LOG]: Alarm Page loaded
qml: [LOG]: Searching online for user location at http://
qml: [LOG]: Stopping geolocation update service
Source changed not found
qml: [LOG]: Alarm Database loaded
Source changed not found
qml: [LOG]: Alarm Database loaded
}}}
test-log: {{{
22:19:01.600 INFO logging:45 - TestAlarm: launch_test_local. Arguments (). Keyword arguments: {}.
22:19:01.600 WARNING base:52 - This function is deprecated. Use get_toolkit_
22:19:01.600 INFO _launcher:373 - Attempting to launch application '/usr/lib/
22:19:01.607 INFO _launcher:431 - Launching process: ['/usr/
22:19:04.047 INFO logging:45 - MainView: Open the Alarm Page. Arguments (). Keyword arguments: {}.
22:19:04.049 INFO logging:45 - MainView: Open the Clock Page. Arguments (). Keyword arguments: {}.
22:19:04.432 DEBUG _X11:350 - Moving mouse to position 159,552 with animation.
22:19:04.714 DEBUG _X11:393 - The mouse is now at position 159,552.
22:19:04.715 DEBUG _X11:304 - Pressing mouse button 1
22:19:04.716 DEBUG _X11:350 - Moving mouse to position 159,160 with animation.
22:19:06.839 DEBUG _X11:393 - The mouse is now at position 159,160.
22:19:06.839 DEBUG _X11:311 - Releasing mouse button 1
22:19:17.088 INFO _launcher:544 - waiting for process to exit.
22:19:17.088 INFO _launcher:567 - Killing process 19619
}}}
traceback-1: {{{
Traceback (most recent call last):
File "/home/
self.page = self.app.
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/home/
clockPage.
File "/home/
self.
File "/usr/lib/
failure_msg))
AssertionError: After 10.0 seconds test on ClockPage.isReady failed: True != dbus.Boolean(False, variant_level=1)
}}}
=======
FAIL: ubuntu_
-------
Binary content:
FailedTestScr
Empty attachments:
/var/log/syslog
process-stdout (/usr/lib/
process-return-code (/usr/lib/
process-stderr (/usr/lib/
Testability driver loaded. Wire protocol version is "1.4".
qml: [LOG]: Clock Page loaded
file://
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and actions.
qml: [LOG]: Alarm Page loaded
qml: [LOG]: Searching online for user location at http://
Source changed not found
qml: [LOG]: Stopping geolocation update service
qml: [LOG]: Alarm Database loaded
Source changed not found
qml: [LOG]: Alarm Database loaded
}}}
test-log: {{{
22:19:17.163 INFO logging:45 - TestAlarm: launch_test_local. Arguments (). Keyword arguments: {}.
22:19:17.163 WARNING base:52 - This function is deprecated. Use get_toolkit_
22:19:17.163 INFO _launcher:373 - Attempting to launch application '/usr/lib/
22:19:17.171 INFO _launcher:431 - Launching process: ['/usr/
22:19:19.917 INFO logging:45 - MainView: Open the Alarm Page. Arguments (). Keyword arguments: {}.
22:19:19.917 INFO logging:45 - MainView: Open the Clock Page. Arguments (). Keyword arguments: {}.
22:19:20.040 DEBUG _X11:350 - Moving mouse to position 159,552 with animation.
22:19:20.320 DEBUG _X11:393 - The mouse is now at position 159,552.
22:19:20.320 DEBUG _X11:304 - Pressing mouse button 1
22:19:20.321 DEBUG _X11:350 - Moving mouse to position 159,160 with animation.
22:19:22.442 DEBUG _X11:393 - The mouse is now at position 159,160.
22:19:22.443 DEBUG _X11:311 - Releasing mouse button 1
22:19:32.737 INFO _launcher:544 - waiting for process to exit.
22:19:32.738 INFO _launcher:567 - Killing process 19651
}}}
traceback-2: {{{
Traceback (most recent call last):
File "/home/
self.page = self.app.
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/home/
clockPage.
File "/home/
self.
File "/usr/lib/
failure_msg))
AssertionError: After 10.0 seconds test on ClockPage.isReady failed: True != dbus.Boolean(False, variant_level=1)
}}}
Ran 3 tests in 47.710s
FAILED (failures=3)
I: autopilot tests done
/usr/bin/
This is my hardware: