Testcase: test_location_lookup(with touch)

Build #:220:20140304.1:20140304
Arch:manta (Nexus 10)
Release:trusty
Variant:touch
Artifacts
Console Log

Failure explanation

This test failure has not yet been categorized.
Log in to edit.

Test case data

testcase
test_location_lookup(with touch)
testsuite
ubuntu_weather_app.tests.test_locationmanager.TestLocationManager
returncode
1
command
autopilot
stderr
_StringException: /var/log/syslog: {{{
Mar  4 22:19:52 ubuntu-phablet kernel: [  184.610782] iio-buffer, current state requested again
Mar  4 22:19:52 ubuntu-phablet kernel: [  185.256138] iio-buffer, current state requested again
Mar  4 22:19:56 ubuntu-phablet kernel: [  188.840053] healthd: battery l=79 v=3947 t=21.8 h=2 st=2 c=-1030 chg=u
}}}

Application Log: {{{
libust[2105/2108]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
libust[2105/2108]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
Database created
Settings table added, Database upgraded to v0.2
Removed old locations, Database upgraded to v0.3
callbacks 0xb3e3eead 0xb3e3ee59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene: weather'libust[2156/2159]: Error: Error opening shm /lttng-ust-wait-5-32011
(in get_wait_shm() at lttng-ust-comm.c:881)
libust[2156/2159]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
Database created
Settings table added, Database upgraded to v0.2
Removed old locations, Database upgraded to v0.3
callbacks 0xb3d7eead 0xb3d7ee59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene: weather'libust[2205/2208]: Error: Error opening shm /lttng-ust-wait-5-32011
(in get_wait_shm() at lttng-ust-comm.c:881)
libust[2205/2208]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
callbacks 0xb3d92ead 0xb3d92e59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene: weather'[Hamburg] returning cached data, time from last fetch: 2.348
[London] returning cached data, time from last fetch: 2.325
Detectable autorepeat not supported. 
libust[2256/2259]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
libust[2256/2259]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
callbacks 0xb3e34ead 0xb3e34e59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene: weather'[Hamburg] returning cached data, time from last fetch: 2.237
[London] returning cached data, time from last fetch: 2.2
Detectable autorepeat not supported. 
Sent request URL: http://wxdata.weather.com/wxdata/mobile/mobagg/GMXX0049.js?key=b7d7a237-d6df-4157-be64-c39eca403d5b&units=m&locale=en_US&hours=48
Sent request URL: http://wxdata.weather.com/wxdata/mobile/mobagg/UKXX0085.js?key=b7d7a237-d6df-4157-be64-c39eca403d5b&units=m&locale=en_US&hours=48
[London] {"year":2014,"month":2,"date":4,"hours":22,"minutes":18}
ICON MISSING POINT: undefined N/A
[Hamburg] {"year":2014,"month":2,"date":4,"hours":23,"minutes":18}
libust[2308/2311]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
libust[2308/2311]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
Database created
Settings table added, Database upgraded to v0.2
Removed old locations, Database upgraded to v0.3
callbacks 0xb3dd7ead 0xb3dd7e59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene: weather'Detectable autorepeat not supported. 
Sent request URL:
http://wxdata.weather.com/wxdata/mobile/mobagg/get.js?key=b7d7a237-d6df-4157-be64-c39eca403d5b&units=m&locale=en_US&hours=48&lat=30.06263&lng=31.24967
[Cairo] {"year":2014,"month":2,"date":5,"hours":0,"minutes":18}
libust[2394/2397]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
libust[2394/2397]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
[Hamburg] returning cached data, time from last fetch: 2.477
[London] returning cached data, time from last fetch: 2.45
callbacks 0xb3d9cead 0xb3d9ce59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene:
weather'file:///usr/share/click/preinstalled/com.ubuntu.weather/1.1.211/components/LocationTab.qml:56: TypeError: Cannot read property 'year' of
undefined
file:///usr/share/click/preinstalled/com.ubuntu.weather/1.1.211/components/LocationTab.qml:56: TypeError: Cannot read property 'year' of undefined
libust[2576/2579]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
libust[2576/2579]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
Database created
Settings table added, Database upgraded to v0.2
Removed old locations, Database upgraded to v0.3
callbacks 0xb3dbcead 0xb3dbce59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene: weather'Detectable autorepeat not supported. 
libust[2625/2628]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
libust[2625/2628]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
Database created
Settings table added, Database upgraded to v0.2
Removed old locations, Database upgraded to v0.3
callbacks 0xb3d96ead 0xb3d96e59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene: weather'libust[2673/2676]: Error: Error opening shm /lttng-ust-wait-5-32011
(in get_wait_shm() at lttng-ust-comm.c:881)
libust[2673/2676]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
callbacks 0xb3d9eead 0xb3d9ee59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene: weather'[Hamburg] returning cached data, time from last fetch: 2.239
[London] returning cached data, time from last fetch: 2.211
Detectable autorepeat not supported. 
[London] returning cached data, time from last fetch: 9.886
Sent request URL: http://api.geonames.org/searchJSON?style=full&username=uweatherdev&name_startsWith=Cairo&maxRows=25&featureClass=P
[London] returning cached data, time from last fetch: 21.02
Sent request URL:
http://wxdata.weather.com/wxdata/mobile/mobagg/get.js?key=b7d7a237-d6df-4157-be64-c39eca403d5b&units=m&locale=en_US&hours=48&lat=30.06263&lng=31.24967
[Cairo] {"year":2014,"month":2,"date":5,"hours":0,"minutes":19}
libust[2729/2732]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
libust[2729/2732]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
Database created
Settings table added, Database upgraded to v0.2
Removed old locations, Database upgraded to v0.3
callbacks 0xb3dcfead 0xb3dcfe59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene: weather'Detectable autorepeat not supported. 
Sent request URL: http://api.geonames.org/searchJSON?style=full&username=uweatherdev&name_startsWith=Paris&maxRows=25&featureClass=P
Sent request URL:
http://wxdata.weather.com/wxdata/mobile/mobagg/get.js?key=b7d7a237-d6df-4157-be64-c39eca403d5b&units=m&locale=en_US&hours=48&lat=48.85341&lng=2.3488
[Paris] {"year":2014,"month":2,"date":4,"hours":23,"minutes":19}
libust[2782/2785]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
libust[2782/2785]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:881)
libust[2782/2784]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:881)
Testability driver loaded. Wire protocol version is "1.4".
Database created
Settings table added, Database upgraded to v0.2
Removed old locations, Database upgraded to v0.3
callbacks 0xb3e1cead 0xb3e1ce59
creating surface at (0, 64) with size (2560, 1536) with title 'qmlscene: weather'Sent request URL: http://geoip.ubuntu.com/lookup
Geolookup: {"lat":"42.3584","lon":"-71.0598"}
Sent request URL: http://api.geonames.org/findNearbyPlaceNameJSON?style=full&username=uweatherdev&lat=42.3584&lng=-71.0598&maxRows=25&featureClass=P
Detectable autorepeat not supported. 
Sent request URL:
http://wxdata.weather.com/wxdata/mobile/mobagg/get.js?key=b7d7a237-d6df-4157-be64-c39eca403d5b&units=m&locale=en_US&hours=48&lat=42.35843&lng=-71.05977
[Boston] {"year":2014,"month":2,"date":4,"hours":17,"minutes":19}
}}}

test-log: {{{
22:19:50.563 INFO globals:57 - ************************************************************
22:19:50.563 INFO globals:58 - Starting test ubuntu_weather_app.tests.test_locationmanager.TestLocationManager.test_location_lookup (with touch)
22:19:50.564 WARNING testcase:115 - No tracing available - install the python-autopilot-trace package!
22:19:50.568 WARNING testcase:152 - Process manager backend unavailable, application snapshot support disabled.
22:19:50.569 DEBUG __init__:66 - Running via click package
22:19:52.102 INFO _launcher:83 - Click package com.ubuntu.weather_weather_1.1.211 has been launched with PID 2782
22:19:53.560 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
22:19:53.610 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:53.634 DEBUG dbus:431 - Selecting objects of type Standard with attributes: {'objectName': 'LocationLookupItem'}
22:19:53.804 DEBUG _common:45 - Moving to object's globalRect coordinates.
22:19:53.806 DEBUG _uinput:475 - Tapping at: 1280,408
22:19:53.909 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:53.960 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LookupIndicator'}
22:19:55.187 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:55.218 DEBUG dbus:431 - Selecting objects of type Label with attributes: {'objectName': 'CurrentLocationLabel'}
22:19:55.393 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:55.410 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'LookupItemAddButton'}
22:19:55.527 DEBUG _common:45 - Moving to object's globalRect coordinates.
22:19:55.529 DEBUG _uinput:475 - Tapping at: 2400,408
22:19:55.634 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:55.703 DEBUG dbus:431 - Selecting objects of type Label with attributes: {'objectName': 'existingLocation0'}
22:19:55.879 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:55.898 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
22:19:56.059 DEBUG _common:45 - Moving to object's globalRect coordinates.
22:19:56.060 DEBUG _uinput:475 - Tapping at: 2420,144
22:19:56.164 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:56.245 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
22:19:57.490 INFO _launcher:258 - waiting for process to exit.
22:19:57.495 INFO _launcher:273 - Killing process 2782
22:19:57.499 INFO _launcher:276 - Appears process has already exited.
}}}

Traceback (most recent call last):
  File "/home/phablet/autopilot/ubuntu_weather_app/tests/test_locationmanager.py", line 228, in test_location_lookup
    self.assertThat(load_indicator.running, Eventually(Equals(False), timeout=120))
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 404, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 454, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match
    wait_fun(self.matcher, self.timeout)
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/types.py", line 158, in wait_for
    _, new_state = self.parent.get_new_state()
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 560, in get_new_state
    return self.get_state_by_path(self.get_class_query_string())[0]
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 540, in get_state_by_path
    data = self._backend.introspection_iface.GetState(piece)
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/backends.py", line 101, in introspection_iface
    "Application under test exited before the test finished!"
RuntimeError: Application under test exited before the test finished!

command_type
testcase_test