Testcase: test_mainview.TestMainView.test_switch_tabs

Build #:109:20140103.1:20131223.2
Arch:mako (Nexus 4)
Release:trusty
Variant:touch
Artifacts
Console Log

Test case data

testcase
test_mainview.TestMainView.test_switch_tabs
testsuite
/tmp/tmpidDWal/testsuites/ubuntu-weather-app-autopilot
returncode
1
command
autopilot-run ubuntu_weather_app.tests.test_mainview.TestMainView.test_switch_tabs
stdout
ADB_RC=0
Loading tests from: /home/phablet/autopilot

18:56:39.380 INFO autopilot:139 - Autopilot Source Version: 1.4.0
Autopilot Package Version: 1.4+14.04.20131125-0ubuntu3
18:56:39.409 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
18:56:39.410 DEBUG __init__:153 - Could not remove existing database
18:56:39.410 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
18:56:39.414 DEBUG __init__:172 - Creating locations and settings tables
18:56:39.415 DEBUG __init__:142 - Executing sql
18:56:39.415 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
18:56:39.417 DEBUG __init__:142 - Executing sql
18:56:39.417 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
18:56:39.419 DEBUG test_mainview:32 - Adding fake data to new database
18:56:39.419 DEBUG __init__:182 - Adding locations to database
18:56:39.510 DEBUG test_mainview:34 - Re-Launching app to introspect
18:56:39.892 INFO globals:56 - ************************************************************
18:56:39.894 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_mainview.TestMainView.test_switch_tabs (with touch)
18:56:39.896 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
18:56:40.096 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
18:56:40.097 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
18:56:44.038 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 4843
18:57:09.668 ERROR proxies:410 - Introspect error on :1.58:/com/canonical/Autopilot/Introspection: dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus
security policy blocked the reply, the reply timeout expired, or the network connection was broken.
18:57:09.669 DEBUG proxies:413 - Executing introspect queue due to error
18:57:10.052 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
18:57:10.112 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
18:57:10.164 DEBUG dbus:431 - Selecting objects of type Tabs with attributes: {}
18:57:10.202 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
18:57:10.258 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'index': 0}
18:57:10.723 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
18:57:10.771 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'index': 1}
18:57:11.403 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
18:57:11.465 INFO logging:45 - MainView: Open a tab. Arguments (1,). Keyword arguments: {}.
18:57:11.465 DEBUG emulators:136 - Switch to tab with index 1.
18:57:11.466 DEBUG dbus:431 - Selecting objects of type Tabs with attributes: {}
18:57:11.497 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {}
18:57:11.555 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {}
18:57:11.700 DEBUG emulators:145 - Current tab index: 0.
18:57:11.702 INFO logging:45 - MainView: Open the next tab. Arguments (). Keyword arguments: {}.
18:57:11.703 DEBUG emulators:121 - Switch to next tab.
18:57:11.704 DEBUG dbus:431 - Selecting objects of type Header with attributes: {'objectName': 'MainView_Header'}
18:57:12.121 INFO logging:45 - Header: Open the next tab. Arguments (). Keyword arguments: {}.
18:57:12.123 DEBUG dbus:431 - Selecting objects of type TabBar with attributes: {}
18:57:12.152 INFO logging:45 - TabBar: Open the next tab. Arguments (). Keyword arguments: {}.
18:57:12.181 DEBUG emulators:345 - Already in selection mode.
18:57:12.182 DEBUG emulators:340 - Click the next tab bar button.
18:57:12.183 DEBUG dbus:431 - Selecting objects of type QQuickPathView with attributes: {}
18:57:12.229 DEBUG dbus:431 - Selecting objects of type AbstractButton with attributes: {}
18:57:12.295 DEBUG dbus:431 - Selecting objects of type AbstractButton with attributes: {}
18:57:12.457 DEBUG _common:35 - Moving to object's globalRect coordinates.
18:57:12.468 DEBUG _uinput:332 - Tapping at: 541,125
18:57:12.570 DEBUG dbus:431 - Selecting objects of type TabBarStyle with attributes: {}
18:57:12.619 DEBUG dbus:431 - Selecting objects of type Tabs with attributes: {}
18:57:12.656 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {}
18:57:12.839 DEBUG emulators:145 - Current tab index: 0.
18:57:12.848 INFO testcase:540 - waiting for process to exit.
18:57:12.849 INFO testcase:542 - Killing process 4843
18:57:13.859 ERROR testresult:37 - ERROR: ubuntu_weather_app.tests.test_mainview.TestMainView.test_switch_tabs(with touch)
18:57:13.862 ERROR testresult:37 - traceback: {{{
Traceback (most recent call last):
File "/home/phablet/autopilot/ubuntu_weather_app/tests/test_mainview.py", line 57, in test_switch_tabs
self.main_window.switch_to_tab_by_index(1)
File "/usr/lib/python2.7/dist-packages/autopilot/logging.py", line 46, in inner
return f(instance, *args, **kwargs)
File "/home/phablet/autopilot/ubuntuuitoolkit/emulators.py", line 150, in switch_to_tab_by_index
'The tab with index {0} was not selected.'.format(index))
ToolkitEmulatorException: The tab with index 1 was not selected.
}}}
ADB_RC=1
command_type
testcase_test