Testcase: test_settings.TestSettings.test_switch_scale

Build #:145:20140123.1: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/tmpvbxP1F/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

22:19:21.666 INFO autopilot:139 - Autopilot Source Version: 1.4.0
Autopilot Package Version: 1.4+14.04.20131125-0ubuntu4
22:19:21.690 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
22:19:21.692 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
22:19:21.695 DEBUG __init__:172 - Creating locations and settings tables
22:19:21.696 DEBUG __init__:142 - Executing sql
22:19:21.697 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
22:19:21.699 DEBUG __init__:142 - Executing sql
22:19:21.700 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
22:19:21.702 DEBUG test_settings:25 - Adding fake data to new database
22:19:21.702 DEBUG __init__:182 - Adding locations to database
22:19:21.766 DEBUG __init__:191 - Adding units to database
22:19:21.767 DEBUG __init__:142 - Executing sql
22:19:21.767 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
22:19:22.140 INFO globals:56 - ************************************************************
22:19:22.143 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel (with touch)
22:19:22.145 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
22:19:22.312 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
22:19:22.312 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
22:19:25.150 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 5328
22:19:27.232 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
22:19:27.307 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:27.374 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:19:27.926 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:27.977 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
22:19:28.416 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
22:19:28.583 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:19:28.798 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:19:29.115 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:29.209 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
22:19:29.669 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:29.719 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
22:19:30.192 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
22:19:30.356 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
22:19:30.443 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
22:19:30.482 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
22:19:30.521 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
22:19:30.560 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
22:19:30.730 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:30.796 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
22:19:30.797 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
22:19:30.830 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
22:19:30.877 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
22:19:30.878 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
22:19:31.005 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:31.007 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
22:19:31.068 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:31.069 DEBUG _uinput:332 - Tapping at: 687,1208
22:19:31.171 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:31.558 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
22:19:32.379 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:32.446 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
22:19:33.282 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:19:33.332 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:19:33.394 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:33.395 DEBUG _uinput:332 - Tapping at: 384,347
22:19:33.504 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:33.619 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
22:19:34.393 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:34.525 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
22:19:35.346 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:35.347 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:19:35.391 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:19:35.462 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:35.463 DEBUG _uinput:332 - Tapping at: 99,455
22:19:35.654 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:35.709 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
22:19:36.467 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:36.543 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
22:19:37.439 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:37.440 DEBUG _uinput:332 - Tapping at: 384,491
22:19:37.543 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:37.602 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
22:19:38.365 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:38.477 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
22:19:39.271 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:39.272 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:19:39.317 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:19:39.394 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:39.395 DEBUG _uinput:332 - Tapping at: 99,636
22:19:39.553 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:39.616 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'cancelButton'}
22:19:40.372 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:40.373 DEBUG _uinput:332 - Tapping at: 126,130
22:19:40.477 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:40.540 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:19:41.325 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:41.407 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
22:19:41.860 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
22:19:42.082 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:19:42.263 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:19:42.558 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:42.686 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
22:19:43.170 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:43.219 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
22:19:43.667 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
22:19:43.868 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
22:19:44.025 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
22:19:44.107 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
22:19:44.154 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
22:19:44.212 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
22:19:44.393 INFO testcase:540 - waiting for process to exit.
22:19:44.394 INFO testcase:542 - Killing process 5328
22:19:45.409 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel(with touch)
22:19:45.417 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
22:19:45.423 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
22:19:45.433 DEBUG __init__:172 - Creating locations and settings tables
22:19:45.437 DEBUG __init__:142 - Executing sql
22:19:45.440 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
22:19:45.448 DEBUG __init__:142 - Executing sql
22:19:45.451 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
22:19:45.460 DEBUG test_settings:25 - Adding fake data to new database
22:19:45.461 DEBUG __init__:182 - Adding locations to database
22:19:45.532 DEBUG __init__:191 - Adding units to database
22:19:45.532 DEBUG __init__:142 - Executing sql
22:19:45.533 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
22:19:45.555 INFO globals:56 - ************************************************************
22:19:45.555 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale (with touch)
22:19:45.557 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
22:19:45.561 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
22:19:45.562 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
22:19:48.470 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 5440
22:19:50.430 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
22:19:50.553 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:50.688 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:19:51.266 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:51.362 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
22:19:51.824 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
22:19:52.001 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:19:52.229 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:19:52.453 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:52.505 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
22:19:52.506 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
22:19:52.541 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
22:19:52.588 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
22:19:52.589 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
22:19:52.683 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:52.684 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
22:19:52.747 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:52.748 DEBUG _uinput:332 - Tapping at: 687,1208
22:19:52.853 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:53.236 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
22:19:54.013 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:54.075 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
22:19:54.932 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:19:55.014 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:19:55.106 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:55.107 DEBUG _uinput:332 - Tapping at: 384,347
22:19:55.209 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:55.300 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
22:19:56.058 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:56.158 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
22:19:56.953 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:56.954 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:19:57.003 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:19:57.097 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:57.099 DEBUG _uinput:332 - Tapping at: 99,455
22:19:57.321 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:57.384 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
22:19:58.175 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:19:58.175 DEBUG _uinput:332 - Tapping at: 642,130
22:19:58.277 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:58.752 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
22:19:59.321 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:59.391 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:19:59.916 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:19:59.971 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
22:20:00.466 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
22:20:00.643 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:20:00.861 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:20:01.200 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:20:01.253 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
22:20:01.255 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
22:20:01.291 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
22:20:01.339 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
22:20:01.340 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
22:20:01.439 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:20:01.441 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
22:20:01.510 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:20:01.511 DEBUG _uinput:332 - Tapping at: 687,1208
22:20:01.615 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:20:01.917 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
22:20:02.708 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:20:02.774 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
22:20:03.651 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:20:03.711 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:20:03.837 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:20:03.838 DEBUG _uinput:332 - Tapping at: 99,347
22:20:03.940 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:20:04.005 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
22:20:04.819 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:20:04.926 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
22:20:05.727 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:20:05.728 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
22:20:05.812 DEBUG dbus:431 - Selecting objects of type OptionSelectorDelegate with attributes: {'objectName': 'celsiusOption'}
22:20:05.969 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:20:05.970 DEBUG _uinput:332 - Tapping at: 384,347
22:20:06.129 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:20:06.203 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
22:20:07.009 DEBUG _common:35 - Moving to object's globalRect coordinates.
22:20:07.010 DEBUG _uinput:332 - Tapping at: 642,130
22:20:07.112 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:20:07.473 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
22:20:08.036 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:20:08.131 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:20:08.677 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
22:20:08.726 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
22:20:09.172 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
22:20:09.380 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:20:09.556 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
22:20:09.777 INFO testcase:540 - waiting for process to exit.
22:20:09.778 INFO testcase:542 - Killing process 5440
22:20:10.784 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale(with touch)
ADB_RC=0
command_type
testcase_test