Testcase: test_settings.TestSettings.test_switch_scale

Build #:144:20140123:20140115.1
Arch:mako (Nexus 4)
Release:trusty
Variant:touch
Artifacts
Console Log

Test case data

testcase
test_settings.TestSettings.test_switch_scale
testsuite
/tmp/tmpr6vMNJ/testsuites/ubuntu-weather-app-autopilot
returncode
0
command
autopilot-run ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale
stdout
ADB_RC=0
Loading tests from: /home/phablet/autopilot

07:37:46.014 INFO autopilot:139 - Autopilot Source Version: 1.4.0
Autopilot Package Version: 1.4+14.04.20131125-0ubuntu4
07:37:46.038 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
07:37:46.040 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
07:37:46.044 DEBUG __init__:172 - Creating locations and settings tables
07:37:46.046 DEBUG __init__:142 - Executing sql
07:37:46.046 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
07:37:46.048 DEBUG __init__:142 - Executing sql
07:37:46.049 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
07:37:46.051 DEBUG test_settings:25 - Adding fake data to new database
07:37:46.051 DEBUG __init__:182 - Adding locations to database
07:37:46.111 DEBUG __init__:191 - Adding units to database
07:37:46.112 DEBUG __init__:142 - Executing sql
07:37:46.113 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
07:37:46.510 INFO globals:56 - ************************************************************
07:37:46.511 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel (with touch)
07:37:46.511 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
07:37:46.661 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
07:37:46.661 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
07:37:49.541 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 5292
07:37:51.542 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
07:37:51.634 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:37:51.699 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:37:52.228 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:37:52.278 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:37:52.727 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:37:52.913 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:37:53.145 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:37:53.353 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:37:53.425 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:37:53.874 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:37:53.928 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:37:54.385 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:37:54.557 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:37:54.667 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:37:54.705 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:37:54.754 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:37:54.800 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:37:55.097 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:37:55.204 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:37:55.208 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
07:37:55.250 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:37:55.293 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
07:37:55.293 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
07:37:55.428 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:37:55.429 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:37:55.526 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:37:55.529 DEBUG _uinput:332 - Tapping at: 687,1208
07:37:55.634 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:37:56.056 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:37:56.850 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:37:56.916 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:37:57.863 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:37:57.906 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:37:57.987 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:37:57.988 DEBUG _uinput:332 - Tapping at: 384,347
07:37:58.091 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:37:58.214 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:37:59.045 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:37:59.103 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:37:59.894 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:37:59.894 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:37:59.956 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:38:00.084 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:00.084 DEBUG _uinput:332 - Tapping at: 99,455
07:38:00.244 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:00.311 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
07:38:01.096 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:01.164 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
07:38:01.986 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:01.987 DEBUG _uinput:332 - Tapping at: 384,491
07:38:02.089 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:02.194 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:38:02.957 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:03.016 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:38:03.784 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:03.785 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:38:03.833 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:38:03.912 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:03.913 DEBUG _uinput:332 - Tapping at: 99,636
07:38:04.083 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:04.155 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'cancelButton'}
07:38:05.079 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:05.079 DEBUG _uinput:332 - Tapping at: 126,130
07:38:05.183 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:05.252 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:06.137 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:06.187 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:38:06.643 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:38:06.822 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:07.056 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:07.500 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:07.584 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:38:08.103 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:08.178 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:38:08.666 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:38:08.873 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:38:09.003 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:38:09.055 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:38:09.123 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:38:09.219 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:38:09.527 INFO testcase:540 - waiting for process to exit.
07:38:09.528 INFO testcase:542 - Killing process 5292
07:38:10.552 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel(with touch)
07:38:10.559 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
07:38:10.565 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
07:38:10.576 DEBUG __init__:172 - Creating locations and settings tables
07:38:10.580 DEBUG __init__:142 - Executing sql
07:38:10.583 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
07:38:10.590 DEBUG __init__:142 - Executing sql
07:38:10.594 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
07:38:10.603 DEBUG test_settings:25 - Adding fake data to new database
07:38:10.604 DEBUG __init__:182 - Adding locations to database
07:38:10.660 DEBUG __init__:191 - Adding units to database
07:38:10.661 DEBUG __init__:142 - Executing sql
07:38:10.662 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
07:38:10.674 INFO globals:56 - ************************************************************
07:38:10.675 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale (with touch)
07:38:10.676 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
07:38:10.680 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
07:38:10.681 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
07:38:14.560 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 5423
07:38:15.632 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
07:38:15.757 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:15.836 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:16.399 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:16.450 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:38:16.877 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:38:17.040 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:17.251 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:17.476 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:17.532 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:38:17.533 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
07:38:17.571 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:38:17.617 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
07:38:17.618 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
07:38:17.722 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:17.723 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:38:17.789 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:17.789 DEBUG _uinput:332 - Tapping at: 687,1208
07:38:17.891 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:18.258 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:38:19.059 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:19.124 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:38:20.013 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:38:20.058 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:38:20.125 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:20.126 DEBUG _uinput:332 - Tapping at: 384,347
07:38:20.229 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:20.298 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:38:21.058 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:21.131 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:38:21.906 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:21.907 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:38:21.954 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:38:22.134 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:22.136 DEBUG _uinput:332 - Tapping at: 99,455
07:38:22.314 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:22.383 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
07:38:23.231 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:23.232 DEBUG _uinput:332 - Tapping at: 642,130
07:38:23.334 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:23.741 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
07:38:24.277 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:24.329 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:24.836 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:24.931 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:38:25.399 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:38:25.572 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:25.788 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:26.116 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:26.169 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:38:26.170 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
07:38:26.205 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:38:26.253 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
07:38:26.254 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
07:38:26.353 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:26.354 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:38:26.423 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:26.424 DEBUG _uinput:332 - Tapping at: 687,1208
07:38:26.526 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:26.839 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:38:27.660 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:27.723 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:38:28.537 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:38:28.623 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:38:28.705 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:28.705 DEBUG _uinput:332 - Tapping at: 99,347
07:38:28.809 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:28.882 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:38:29.690 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:29.766 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:38:30.569 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:30.571 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:38:30.661 DEBUG dbus:431 - Selecting objects of type OptionSelectorDelegate with attributes: {'objectName': 'celsiusOption'}
07:38:30.808 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:30.809 DEBUG _uinput:332 - Tapping at: 384,347
07:38:30.975 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:31.042 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
07:38:31.845 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:38:31.846 DEBUG _uinput:332 - Tapping at: 642,130
07:38:31.948 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:32.384 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
07:38:32.964 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:33.014 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:33.531 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:38:33.580 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:38:34.019 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:38:34.251 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:34.454 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:38:34.787 INFO testcase:540 - waiting for process to exit.
07:38:34.788 INFO testcase:542 - Killing process 5423
07:38:35.794 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale(with touch)
ADB_RC=0
command_type
testcase_test