Testcase: test_settings.TestSettings.test_switch_scale

Build #:146:20140124: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/tmpqzqhqK/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:16:38.378 INFO autopilot:139 - Autopilot Source Version: 1.4.0
Autopilot Package Version: 1.4+14.04.20131125-0ubuntu4
07:16:38.401 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
07:16:38.404 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
07:16:38.407 DEBUG __init__:172 - Creating locations and settings tables
07:16:38.409 DEBUG __init__:142 - Executing sql
07:16:38.410 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
07:16:38.412 DEBUG __init__:142 - Executing sql
07:16:38.413 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
07:16:38.414 DEBUG test_settings:25 - Adding fake data to new database
07:16:38.415 DEBUG __init__:182 - Adding locations to database
07:16:38.484 DEBUG __init__:191 - Adding units to database
07:16:38.485 DEBUG __init__:142 - Executing sql
07:16:38.486 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
07:16:38.884 INFO globals:56 - ************************************************************
07:16:38.887 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel (with touch)
07:16:38.889 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
07:16:39.041 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
07:16:39.041 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
07:16:42.885 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 5283
07:16:44.411 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
07:16:44.516 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:44.604 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:16:45.158 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:45.207 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:16:45.670 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:16:45.832 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:16:46.009 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:16:46.251 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:46.341 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:16:46.835 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:46.882 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:16:47.325 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:16:47.511 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:16:47.594 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:16:47.632 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:16:47.669 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:16:47.707 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:16:47.880 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:47.931 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:16:47.932 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
07:16:47.985 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:16:48.090 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
07:16:48.094 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
07:16:48.263 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:16:48.264 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:16:48.350 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:16:48.352 DEBUG _uinput:332 - Tapping at: 687,1208
07:16:48.454 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:48.827 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:16:49.611 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:49.676 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:16:50.503 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:16:50.588 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:16:50.756 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:16:50.757 DEBUG _uinput:332 - Tapping at: 384,347
07:16:50.860 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:50.946 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:16:51.708 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:51.831 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:16:52.598 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:16:52.601 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:16:52.699 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:16:52.816 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:16:52.817 DEBUG _uinput:332 - Tapping at: 99,455
07:16:53.000 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:53.057 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
07:16:53.806 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:53.875 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
07:16:54.721 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:16:54.722 DEBUG _uinput:332 - Tapping at: 384,491
07:16:54.823 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:54.879 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:16:55.641 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:55.709 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:16:56.482 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:16:56.483 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:16:56.531 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:16:56.624 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:16:56.625 DEBUG _uinput:332 - Tapping at: 99,636
07:16:56.796 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:56.854 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'cancelButton'}
07:16:57.652 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:16:57.654 DEBUG _uinput:332 - Tapping at: 126,130
07:16:57.757 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:57.822 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:16:58.614 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:58.691 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:16:59.136 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:16:59.304 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:16:59.475 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:16:59.711 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:16:59.788 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:17:00.317 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:00.388 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:17:00.849 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:17:01.032 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:17:01.128 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:17:01.176 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:17:01.218 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:17:01.258 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:17:01.435 INFO testcase:540 - waiting for process to exit.
07:17:01.436 INFO testcase:542 - Killing process 5283
07:17:02.451 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel(with touch)
07:17:02.458 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
07:17:02.464 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
07:17:02.475 DEBUG __init__:172 - Creating locations and settings tables
07:17:02.480 DEBUG __init__:142 - Executing sql
07:17:02.482 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
07:17:02.491 DEBUG __init__:142 - Executing sql
07:17:02.494 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
07:17:02.506 DEBUG test_settings:25 - Adding fake data to new database
07:17:02.507 DEBUG __init__:182 - Adding locations to database
07:17:02.560 DEBUG __init__:191 - Adding units to database
07:17:02.560 DEBUG __init__:142 - Executing sql
07:17:02.561 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
07:17:02.573 INFO globals:56 - ************************************************************
07:17:02.573 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale (with touch)
07:17:02.575 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
07:17:02.578 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
07:17:02.580 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
07:17:05.408 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 5403
07:17:07.331 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
07:17:07.471 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:07.613 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:17:08.192 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:08.241 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:17:08.676 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:17:08.877 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:17:09.103 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:17:09.406 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:09.495 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:17:09.496 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
07:17:09.541 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:17:09.607 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
07:17:09.608 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
07:17:09.745 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:09.747 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:17:09.840 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:09.841 DEBUG _uinput:332 - Tapping at: 687,1208
07:17:09.945 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:10.351 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:17:11.089 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:11.147 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:17:11.967 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:17:12.030 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:17:12.127 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:12.128 DEBUG _uinput:332 - Tapping at: 384,347
07:17:12.235 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:12.298 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:17:13.078 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:13.137 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:17:13.944 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:13.945 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:17:13.990 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:17:14.083 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:14.084 DEBUG _uinput:332 - Tapping at: 99,455
07:17:14.282 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:14.374 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
07:17:15.187 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:15.188 DEBUG _uinput:332 - Tapping at: 642,130
07:17:15.292 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:15.796 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
07:17:16.313 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:16.375 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:17:16.882 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:16.937 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:17:17.431 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:17:17.628 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:17:17.871 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:17:18.203 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:18.319 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:17:18.320 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
07:17:18.404 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:17:18.471 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
07:17:18.472 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
07:17:18.632 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:18.634 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:17:18.715 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:18.716 DEBUG _uinput:332 - Tapping at: 687,1208
07:17:18.818 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:19.110 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:17:19.875 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:19.938 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:17:20.778 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:17:20.852 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:17:20.983 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:20.985 DEBUG _uinput:332 - Tapping at: 99,347
07:17:21.091 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:21.172 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:17:21.939 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:22.006 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:17:22.837 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:22.838 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:17:22.923 DEBUG dbus:431 - Selecting objects of type OptionSelectorDelegate with attributes: {'objectName': 'celsiusOption'}
07:17:23.153 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:23.156 DEBUG _uinput:332 - Tapping at: 384,347
07:17:23.322 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:23.384 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
07:17:24.166 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:17:24.167 DEBUG _uinput:332 - Tapping at: 642,130
07:17:24.269 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:24.804 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
07:17:25.327 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:25.377 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:17:25.904 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:17:25.958 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:17:26.445 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:17:26.646 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:17:27.009 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:17:27.385 INFO testcase:540 - waiting for process to exit.
07:17:27.387 INFO testcase:542 - Killing process 5403
07:17:28.394 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale(with touch)
ADB_RC=0
command_type
testcase_test