Testcase: test_settings.TestSettings.test_switch_scale

Build #:143:20140122.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/tmphf6F36/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:52:54.745 INFO autopilot:139 - Autopilot Source Version: 1.4.0
Autopilot Package Version: 1.4+14.04.20131125-0ubuntu4
21:52:54.768 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
21:52:54.769 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
21:52:54.772 DEBUG __init__:172 - Creating locations and settings tables
21:52:54.773 DEBUG __init__:142 - Executing sql
21:52:54.773 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
21:52:54.775 DEBUG __init__:142 - Executing sql
21:52:54.776 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
21:52:54.777 DEBUG test_settings:25 - Adding fake data to new database
21:52:54.777 DEBUG __init__:182 - Adding locations to database
21:52:54.833 DEBUG __init__:191 - Adding units to database
21:52:54.834 DEBUG __init__:142 - Executing sql
21:52:54.834 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
21:52:55.192 INFO globals:56 - ************************************************************
21:52:55.194 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel (with touch)
21:52:55.197 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
21:52:55.382 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
21:52:55.383 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
21:52:59.236 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 10554
21:53:00.603 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
21:53:00.724 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:00.828 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:01.457 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:01.511 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:53:02.014 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:53:02.192 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:02.422 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:02.631 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:02.680 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
21:53:03.192 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:03.239 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:53:03.677 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:53:03.858 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
21:53:03.955 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
21:53:04.039 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
21:53:04.078 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
21:53:04.119 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
21:53:04.316 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:04.413 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:53:04.415 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
21:53:04.491 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:53:04.587 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
21:53:04.589 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
21:53:04.751 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:04.752 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:53:04.817 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:04.818 DEBUG _uinput:332 - Tapping at: 687,1208
21:53:04.919 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:05.332 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:53:06.190 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:06.285 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:53:07.146 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:07.188 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:07.249 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:07.250 DEBUG _uinput:332 - Tapping at: 384,347
21:53:07.354 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:07.473 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:53:08.318 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:08.399 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:53:09.181 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:09.182 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:09.261 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:09.359 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:09.360 DEBUG _uinput:332 - Tapping at: 99,455
21:53:09.526 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:09.599 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
21:53:10.380 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:10.441 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
21:53:11.303 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:11.304 DEBUG _uinput:332 - Tapping at: 384,491
21:53:11.405 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:11.466 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:53:12.302 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:12.378 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:53:13.243 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:13.244 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:13.292 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:13.432 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:13.433 DEBUG _uinput:332 - Tapping at: 99,636
21:53:13.607 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:13.673 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'cancelButton'}
21:53:14.503 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:14.505 DEBUG _uinput:332 - Tapping at: 126,130
21:53:14.607 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:14.683 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:15.334 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:15.385 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:53:15.851 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:53:16.053 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:16.251 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:16.638 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:16.770 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
21:53:17.341 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:17.394 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:53:17.843 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:53:18.032 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
21:53:18.135 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
21:53:18.241 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
21:53:18.283 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
21:53:18.329 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
21:53:18.566 INFO testcase:540 - waiting for process to exit.
21:53:18.568 INFO testcase:542 - Killing process 10554
21:53:19.579 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel(with touch)
21:53:19.582 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
21:53:19.586 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
21:53:19.592 DEBUG __init__:172 - Creating locations and settings tables
21:53:19.594 DEBUG __init__:142 - Executing sql
21:53:19.595 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
21:53:19.600 DEBUG __init__:142 - Executing sql
21:53:19.601 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
21:53:19.604 DEBUG test_settings:25 - Adding fake data to new database
21:53:19.606 DEBUG __init__:182 - Adding locations to database
21:53:19.673 DEBUG __init__:191 - Adding units to database
21:53:19.674 DEBUG __init__:142 - Executing sql
21:53:19.674 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
21:53:19.687 INFO globals:56 - ************************************************************
21:53:19.688 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale (with touch)
21:53:19.688 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
21:53:19.692 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
21:53:19.693 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
21:53:23.595 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 10825
21:53:25.213 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
21:53:25.318 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:25.392 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:26.024 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:26.110 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:53:26.568 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:53:26.749 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:26.953 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:27.376 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:27.461 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:53:27.465 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
21:53:27.513 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:53:27.571 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
21:53:27.573 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
21:53:27.707 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:27.709 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:53:27.834 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:27.835 DEBUG _uinput:332 - Tapping at: 687,1208
21:53:27.942 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:28.376 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:53:29.137 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:29.194 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:53:30.011 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:30.056 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:30.153 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:30.154 DEBUG _uinput:332 - Tapping at: 384,347
21:53:30.256 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:30.356 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:53:31.196 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:31.264 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:53:32.100 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:32.101 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:32.146 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:32.288 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:32.290 DEBUG _uinput:332 - Tapping at: 99,455
21:53:32.462 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:32.530 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
21:53:33.431 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:33.434 DEBUG _uinput:332 - Tapping at: 642,130
21:53:33.536 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:33.940 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
21:53:34.624 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:34.706 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:35.233 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:35.285 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:53:35.784 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:53:35.971 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:36.139 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:36.389 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:36.479 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:53:36.481 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
21:53:36.550 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:53:36.649 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
21:53:36.650 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
21:53:36.800 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:36.802 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
21:53:36.874 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:36.877 DEBUG _uinput:332 - Tapping at: 687,1208
21:53:36.979 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:37.293 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:53:38.102 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:38.169 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
21:53:39.053 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:39.116 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:39.212 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:39.212 DEBUG _uinput:332 - Tapping at: 99,347
21:53:39.314 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:39.388 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:53:40.277 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:40.345 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
21:53:41.179 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:41.181 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
21:53:41.270 DEBUG dbus:431 - Selecting objects of type OptionSelectorDelegate with attributes: {'objectName': 'celsiusOption'}
21:53:41.436 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:41.437 DEBUG _uinput:332 - Tapping at: 384,347
21:53:41.601 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:41.677 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
21:53:42.436 DEBUG _common:35 - Moving to object's globalRect coordinates.
21:53:42.437 DEBUG _uinput:332 - Tapping at: 642,130
21:53:42.539 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:42.911 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
21:53:43.492 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:43.557 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:44.176 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
21:53:44.236 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
21:53:44.718 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
21:53:44.917 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:45.224 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
21:53:45.477 INFO testcase:540 - waiting for process to exit.
21:53:45.478 INFO testcase:542 - Killing process 10825
21:53:46.481 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale(with touch)
ADB_RC=0
command_type
testcase_test