Testcase: test_settings.TestSettings.test_switch_scale

Build #:113:20140105.1:20131223.2
Arch:mako (Nexus 4)
Release:trusty
Variant:touch
Artifacts
Console Log

Test case data

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

19:00:45.701 INFO autopilot:139 - Autopilot Source Version: 1.4.0
Autopilot Package Version: 1.4+14.04.20131125-0ubuntu3
19:00:45.724 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
19:00:45.726 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
19:00:45.729 DEBUG __init__:172 - Creating locations and settings tables
19:00:45.730 DEBUG __init__:142 - Executing sql
19:00:45.731 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
19:00:45.733 DEBUG __init__:142 - Executing sql
19:00:45.734 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
19:00:45.736 DEBUG test_settings:25 - Adding fake data to new database
19:00:45.737 DEBUG __init__:182 - Adding locations to database
19:00:45.782 DEBUG __init__:191 - Adding units to database
19:00:45.783 DEBUG __init__:142 - Executing sql
19:00:45.784 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
19:00:46.194 INFO globals:56 - ************************************************************
19:00:46.195 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel (with touch)
19:00:46.196 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
19:00:46.348 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
19:00:46.349 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
19:00:50.249 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 3383
19:00:51.431 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
19:00:51.531 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:00:51.612 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:00:52.159 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:00:52.207 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
19:00:52.657 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
19:00:52.833 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:00:53.072 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:00:53.376 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:00:53.513 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
19:00:53.994 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:00:54.042 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
19:00:54.465 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
19:00:54.623 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
19:00:54.710 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
19:00:54.748 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
19:00:54.787 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
19:00:54.824 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
19:00:54.990 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:00:55.039 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
19:00:55.040 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
19:00:55.074 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
19:00:55.116 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
19:00:55.117 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
19:00:55.205 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:00:55.207 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
19:00:55.266 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:00:55.267 DEBUG _uinput:332 - Tapping at: 687,1208
19:00:55.369 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:00:55.794 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
19:00:56.536 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:00:56.609 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
19:00:57.513 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:00:57.565 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:00:57.677 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:00:57.678 DEBUG _uinput:332 - Tapping at: 384,347
19:00:57.781 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:00:57.885 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
19:00:58.649 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:00:58.711 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
19:00:59.500 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:00:59.500 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:00:59.543 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:00:59.611 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:00:59.612 DEBUG _uinput:332 - Tapping at: 99,455
19:00:59.785 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:00:59.848 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
19:01:00.615 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:00.695 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
19:01:01.634 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:01.635 DEBUG _uinput:332 - Tapping at: 384,491
19:01:01.741 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:01.811 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
19:01:02.582 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:02.643 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
19:01:03.391 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:03.392 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:01:03.439 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:01:03.512 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:03.512 DEBUG _uinput:332 - Tapping at: 99,636
19:01:03.694 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:03.789 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'cancelButton'}
19:01:04.558 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:04.559 DEBUG _uinput:332 - Tapping at: 126,130
19:01:04.663 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:04.750 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:05.596 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:05.683 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
19:01:06.134 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
19:01:06.331 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:06.507 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:06.840 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:06.893 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
19:01:07.371 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:07.426 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
19:01:07.890 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
19:01:08.067 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
19:01:08.161 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
19:01:08.206 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
19:01:08.251 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
19:01:08.303 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
19:01:08.475 INFO testcase:540 - waiting for process to exit.
19:01:08.476 INFO testcase:542 - Killing process 3383
19:01:09.500 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel(with touch)
19:01:09.506 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
19:01:09.512 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
19:01:09.523 DEBUG __init__:172 - Creating locations and settings tables
19:01:09.527 DEBUG __init__:142 - Executing sql
19:01:09.530 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
19:01:09.538 DEBUG __init__:142 - Executing sql
19:01:09.540 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
19:01:09.551 DEBUG test_settings:25 - Adding fake data to new database
19:01:09.552 DEBUG __init__:182 - Adding locations to database
19:01:09.591 DEBUG __init__:191 - Adding units to database
19:01:09.592 DEBUG __init__:142 - Executing sql
19:01:09.592 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
19:01:09.604 INFO globals:56 - ************************************************************
19:01:09.605 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale (with touch)
19:01:09.606 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
19:01:09.612 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
19:01:09.613 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
19:01:13.480 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 3502
19:01:14.722 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
19:01:14.800 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:14.890 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:15.441 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:15.492 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
19:01:15.944 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
19:01:16.119 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:16.319 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:16.616 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:16.723 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
19:01:16.725 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
19:01:16.791 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
19:01:16.844 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
19:01:16.845 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
19:01:16.996 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:16.997 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
19:01:17.062 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:17.063 DEBUG _uinput:332 - Tapping at: 687,1208
19:01:17.165 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:17.528 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
19:01:18.253 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:18.362 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
19:01:19.178 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:01:19.222 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:01:19.290 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:19.291 DEBUG _uinput:332 - Tapping at: 384,347
19:01:19.394 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:19.488 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
19:01:20.250 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:20.335 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
19:01:21.143 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:21.144 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:01:21.194 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:01:21.290 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:21.291 DEBUG _uinput:332 - Tapping at: 99,455
19:01:21.500 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:21.574 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
19:01:22.407 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:22.408 DEBUG _uinput:332 - Tapping at: 642,130
19:01:22.511 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:22.987 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
19:01:23.516 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:23.578 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:24.108 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:24.187 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
19:01:24.652 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
19:01:24.835 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:25.031 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:25.254 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:25.310 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
19:01:25.311 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
19:01:25.349 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
19:01:25.397 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
19:01:25.398 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
19:01:25.500 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:25.502 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
19:01:25.571 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:25.572 DEBUG _uinput:332 - Tapping at: 687,1208
19:01:25.676 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:26.012 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
19:01:26.833 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:26.939 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
19:01:27.832 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:01:27.884 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:01:27.969 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:27.971 DEBUG _uinput:332 - Tapping at: 99,347
19:01:28.075 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:28.141 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
19:01:28.881 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:28.999 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
19:01:29.765 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:29.765 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
19:01:29.835 DEBUG dbus:431 - Selecting objects of type OptionSelectorDelegate with attributes: {'objectName': 'celsiusOption'}
19:01:30.086 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:30.087 DEBUG _uinput:332 - Tapping at: 384,347
19:01:30.259 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:30.350 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
19:01:31.154 DEBUG _common:35 - Moving to object's globalRect coordinates.
19:01:31.155 DEBUG _uinput:332 - Tapping at: 642,130
19:01:31.258 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:31.755 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
19:01:32.310 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:32.360 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:32.854 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
19:01:32.949 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
19:01:33.396 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
19:01:33.596 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:33.824 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
19:01:34.130 INFO testcase:540 - waiting for process to exit.
19:01:34.131 INFO testcase:542 - Killing process 3502
19:01:35.138 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale(with touch)
ADB_RC=0
command_type
testcase_test