Testcase: test_settings.TestSettings.test_switch_scale

Build #:120:20140109.1:20140107.1
Arch:mako (Nexus 4)
Release:trusty
Variant:touch
Artifacts
Console Log

Test case data

testcase
test_settings.TestSettings.test_switch_scale
testsuite
/tmp/tmphY15uW/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

21:18:08.667 INFO autopilot:139 - Autopilot Source Version: 1.4.0
Autopilot Package Version: 1.4+14.04.20131125-0ubuntu3
21:18:08.692 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
21:18:08.694 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
21:18:08.697 DEBUG __init__:172 - Creating locations and settings tables
21:18:08.699 DEBUG __init__:142 - Executing sql
21:18:08.699 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
21:18:08.702 DEBUG __init__:142 - Executing sql
21:18:08.702 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
21:18:08.704 DEBUG test_settings:25 - Adding fake data to new database
21:18:08.705 DEBUG __init__:182 - Adding locations to database
21:18:08.751 DEBUG __init__:191 - Adding units to database
21:18:08.752 DEBUG __init__:142 - Executing sql
21:18:08.752 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
21:18:09.137 INFO globals:56 - ************************************************************
21:18:09.139 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel (with touch)
21:18:09.141 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
21:18:09.309 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
21:18:09.310 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
21:18:13.152 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 5334
21:18:13.974 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
21:18:14.075 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:14.163 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:14.745 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:14.802 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:18:15.241 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:18:15.408 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:15.646 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:15.997 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:16.045 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
21:18:16.489 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:16.540 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:18:17.024 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:18:17.214 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
21:18:17.332 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
21:18:17.382 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
21:18:17.423 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
21:18:17.461 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
21:18:17.755 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:17.896 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:18:17.897 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
21:18:17.931 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:18:17.978 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
21:18:17.978 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
21:18:18.129 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:18.130 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:18:18.204 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:18.207 DEBUG _uinput:332 - Tapping at: 687,1208
21:18:18.316 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:18.731 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:18:19.520 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:19.587 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:18:20.429 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:20.514 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:20.631 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:20.632 DEBUG _uinput:332 - Tapping at: 384,347
21:18:20.744 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:20.837 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:18:21.632 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:21.693 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:18:22.511 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:22.512 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:22.556 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:22.637 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:22.638 DEBUG _uinput:332 - Tapping at: 99,455
21:18:22.818 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:22.888 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
21:18:23.720 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:23.791 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
21:18:24.649 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:24.650 DEBUG _uinput:332 - Tapping at: 384,491
21:18:24.755 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:24.824 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:18:25.605 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:25.664 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:18:26.435 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:26.436 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:26.501 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:26.619 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:26.620 DEBUG _uinput:332 - Tapping at: 99,636
21:18:26.792 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:26.846 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'cancelButton'}
21:18:27.645 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:27.645 DEBUG _uinput:332 - Tapping at: 126,130
21:18:27.748 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:27.826 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:28.649 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:28.714 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:18:29.206 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:18:29.415 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:29.662 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:30.034 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:30.120 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
21:18:30.649 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:30.725 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:18:31.212 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:18:31.422 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
21:18:31.529 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
21:18:31.602 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
21:18:31.756 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
21:18:31.830 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
21:18:32.016 INFO testcase:540 - waiting for process to exit.
21:18:32.017 INFO testcase:542 - Killing process 5334
21:18:33.033 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel(with touch)
21:18:33.039 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
21:18:33.045 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
21:18:33.056 DEBUG __init__:172 - Creating locations and settings tables
21:18:33.061 DEBUG __init__:142 - Executing sql
21:18:33.063 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
21:18:33.071 DEBUG __init__:142 - Executing sql
21:18:33.073 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
21:18:33.085 DEBUG test_settings:25 - Adding fake data to new database
21:18:33.086 DEBUG __init__:182 - Adding locations to database
21:18:33.133 DEBUG __init__:191 - Adding units to database
21:18:33.134 DEBUG __init__:142 - Executing sql
21:18:33.134 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
21:18:33.147 INFO globals:56 - ************************************************************
21:18:33.148 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale (with touch)
21:18:33.149 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
21:18:33.154 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
21:18:33.156 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
21:18:36.056 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 5443
21:18:37.941 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
21:18:38.023 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:38.109 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:38.637 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:38.707 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:18:39.181 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:18:39.358 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:39.542 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:39.777 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:39.832 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:18:39.834 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
21:18:39.872 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:18:39.921 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
21:18:39.922 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
21:18:40.024 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:40.026 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:18:40.092 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:40.093 DEBUG _uinput:332 - Tapping at: 687,1208
21:18:40.195 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:40.582 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:18:41.346 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:41.425 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:18:42.261 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:42.323 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:42.435 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:42.436 DEBUG _uinput:332 - Tapping at: 384,347
21:18:42.544 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:42.613 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:18:43.393 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:43.465 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:18:44.269 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:44.271 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:44.320 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:44.400 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:44.402 DEBUG _uinput:332 - Tapping at: 99,455
21:18:44.585 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:44.697 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
21:18:45.536 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:45.537 DEBUG _uinput:332 - Tapping at: 642,130
21:18:45.639 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:46.055 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
21:18:46.621 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:46.681 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:47.295 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:47.356 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:18:47.836 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:18:48.014 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:48.268 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:48.621 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:48.722 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:18:48.722 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
21:18:48.758 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:18:48.815 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
21:18:48.816 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
21:18:48.962 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:48.963 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:18:49.135 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:49.139 DEBUG _uinput:332 - Tapping at: 687,1208
21:18:49.249 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:49.516 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:18:50.301 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:50.362 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:18:51.218 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:51.272 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:51.351 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:51.351 DEBUG _uinput:332 - Tapping at: 99,347
21:18:51.453 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:51.586 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:18:52.329 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:52.394 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:18:53.202 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:53.203 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:18:53.306 DEBUG dbus:431 - Selecting objects of type OptionSelectorDelegate with attributes: {'objectName': 'celsiusOption'}
21:18:53.581 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:53.583 DEBUG _uinput:332 - Tapping at: 384,347
21:18:53.782 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:53.857 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
21:18:54.675 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:18:54.676 DEBUG _uinput:332 - Tapping at: 642,130
21:18:54.778 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:55.244 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
21:18:55.777 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:55.830 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:56.326 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:18:56.399 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:18:56.868 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:18:57.043 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:57.222 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:18:57.459 INFO testcase:540 - waiting for process to exit.
21:18:57.460 INFO testcase:542 - Killing process 5443
21:18:58.473 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale(with touch)
ADB_RC=0
command_type
testcase_test