Testcase: test_settings.TestSettings.test_switch_scale

Build #:148:20140126: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/tmp4eSvnm/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:25:16.557 INFO autopilot:139 - Autopilot Source Version: 1.4.0
Autopilot Package Version: 1.4+14.04.20131125-0ubuntu4
07:25:16.580 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
07:25:16.582 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
07:25:16.586 DEBUG __init__:172 - Creating locations and settings tables
07:25:16.587 DEBUG __init__:142 - Executing sql
07:25:16.588 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
07:25:16.590 DEBUG __init__:142 - Executing sql
07:25:16.591 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
07:25:16.592 DEBUG test_settings:25 - Adding fake data to new database
07:25:16.593 DEBUG __init__:182 - Adding locations to database
07:25:16.652 DEBUG __init__:191 - Adding units to database
07:25:16.653 DEBUG __init__:142 - Executing sql
07:25:16.653 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
07:25:17.092 INFO globals:56 - ************************************************************
07:25:17.094 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel (with touch)
07:25:17.096 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
07:25:17.251 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
07:25:17.252 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
07:25:21.085 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 7490
07:25:22.341 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
07:25:22.409 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:22.482 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:23.108 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:23.155 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:25:23.630 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:25:23.826 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:24.192 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:24.437 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:24.524 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:25:25.082 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:25.129 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:25:25.592 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:25:25.802 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:25:25.919 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:25:25.964 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:25:26.021 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:25:26.074 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:25:26.340 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:26.455 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:25:26.457 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
07:25:26.510 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:25:26.592 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
07:25:26.592 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
07:25:26.693 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:26.694 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:25:26.793 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:26.793 DEBUG _uinput:332 - Tapping at: 687,1261
07:25:26.896 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:27.356 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:25:28.109 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:28.201 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:25:29.047 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:29.089 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:29.151 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:29.152 DEBUG _uinput:332 - Tapping at: 384,347
07:25:29.254 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:29.356 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:25:30.168 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:30.234 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:25:30.999 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:30.999 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:31.041 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:31.113 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:31.114 DEBUG _uinput:332 - Tapping at: 99,455
07:25:31.300 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:31.385 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
07:25:32.168 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:32.239 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'WindUnitsSelector'}
07:25:33.096 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:33.097 DEBUG _uinput:332 - Tapping at: 384,491
07:25:33.202 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:33.270 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:25:34.098 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:34.201 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:25:34.944 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:34.945 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:35.009 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:35.091 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:35.092 DEBUG _uinput:332 - Tapping at: 99,636
07:25:35.277 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:35.347 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'cancelButton'}
07:25:36.139 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:36.144 DEBUG _uinput:332 - Tapping at: 126,130
07:25:36.248 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:36.322 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:37.202 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:37.258 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:25:37.732 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:25:37.932 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:38.174 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:38.458 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:38.529 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:25:38.995 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:39.048 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:25:39.511 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:25:39.689 DEBUG dbus:431 - Selecting objects of type WeatherDetailComponent with attributes: {'objectName': 'WindSpeedValue'}
07:25:39.786 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:25:39.831 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailUnit'}
07:25:39.873 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:25:39.916 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'WeatherDetailValue'}
07:25:40.096 INFO testcase:540 - waiting for process to exit.
07:25:40.098 INFO testcase:542 - Killing process 7490
07:25:41.113 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale_cancel(with touch)
07:25:41.120 DEBUG __init__:149 - Removing existing database at /home/phablet/.local/share/com.ubuntu.weather/Databases
07:25:41.126 DEBUG __init__:163 - Creating blank db on filesystem /home/phablet/.local/share/com.ubuntu.weather/Databases
07:25:41.137 DEBUG __init__:172 - Creating locations and settings tables
07:25:41.142 DEBUG __init__:142 - Executing sql
07:25:41.144 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS Locations(id INTEGER PRIMARY KEY AUTOINCREMENT, data TEXT, date TEXT)
07:25:41.153 DEBUG __init__:142 - Executing sql
07:25:41.156 DEBUG __init__:143 - CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)
07:25:41.166 DEBUG test_settings:25 - Adding fake data to new database
07:25:41.166 DEBUG __init__:182 - Adding locations to database
07:25:41.221 DEBUG __init__:191 - Adding units to database
07:25:41.221 DEBUG __init__:142 - Executing sql
07:25:41.222 DEBUG __init__:143 - INSERT INTO settings(key, value) VALUES('units', 'metric'), ('wind_units', 'kmh'), ('precip_units', 'mm')
07:25:41.234 INFO globals:56 - ************************************************************
07:25:41.235 INFO globals:57 - Starting test ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale (with touch)
07:25:41.235 WARNING testcase:117 - No tracing available - install the python-autopilot-trace package!
07:25:41.239 WARNING testcase:154 - Process manager backend unavailable, application snapshot support disabled.
07:25:41.240 DEBUG __init__:66 - Running via click package
initctl: Unknown instance: com.ubuntu.weather_weather_1.0.168
07:25:45.132 INFO testcase:352 - Click package com.ubuntu.weather_weather_1.0.168 has been launched with PID 7612
07:25:46.592 DEBUG dbus:431 - Selecting objects of type QQuickView with attributes: {}
07:25:46.665 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:46.720 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:47.237 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:47.291 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:25:47.743 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:25:47.921 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:48.167 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:48.390 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:48.442 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:25:48.443 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
07:25:48.478 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:25:48.524 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
07:25:48.525 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
07:25:48.618 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:48.620 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:25:48.683 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:48.684 DEBUG _uinput:332 - Tapping at: 687,1208
07:25:48.789 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:49.166 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:25:49.946 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:50.003 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:25:50.801 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:50.886 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:50.952 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:50.953 DEBUG _uinput:332 - Tapping at: 384,347
07:25:51.058 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:51.173 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:25:51.922 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:52.007 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:25:52.856 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:52.857 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:52.903 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:52.975 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:52.977 DEBUG _uinput:332 - Tapping at: 99,455
07:25:53.205 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:53.342 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
07:25:54.208 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:54.209 DEBUG _uinput:332 - Tapping at: 642,130
07:25:54.310 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:54.757 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
07:25:55.349 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:55.469 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:56.033 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:56.085 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:25:56.536 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:25:56.699 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:56.862 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:25:57.077 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:57.136 INFO logging:45 - MainView: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:25:57.136 DEBUG dbus:431 - Selecting objects of type Toolbar with attributes: {}
07:25:57.170 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:25:57.229 INFO logging:45 - Toolbar: Click a button of the toolbar. Arguments ('SettingsButton',). Keyword arguments: {}.
07:25:57.230 DEBUG dbus:431 - Selecting objects of type ActionItem with attributes: {'objectName': 'SettingsButton'}
07:25:57.354 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:57.356 INFO logging:45 - Toolbar: Open the toolbar if it's not already opened. Arguments (). Keyword arguments: {}.
07:25:57.424 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:57.425 DEBUG _uinput:332 - Tapping at: 687,1208
07:25:57.529 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:57.815 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:25:58.607 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:58.679 DEBUG dbus:431 - Selecting objects of type OptionSelector with attributes: {'objectName': 'TemperatureUnitsSelector'}
07:25:59.545 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:59.657 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:25:59.743 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:25:59.744 DEBUG _uinput:332 - Tapping at: 99,347
07:25:59.846 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:25:59.919 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:26:00.726 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:26:00.799 DEBUG dbus:431 - Selecting objects of type ComposerSheet with attributes: {'objectName': 'SettingsSheet'}
07:26:01.618 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:26:01.619 DEBUG dbus:431 - Selecting objects of type ShapeItem with attributes: {}
07:26:01.749 DEBUG dbus:431 - Selecting objects of type OptionSelectorDelegate with attributes: {'objectName': 'celsiusOption'}
07:26:01.890 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:26:01.891 DEBUG _uinput:332 - Tapping at: 384,347
07:26:02.070 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:26:02.179 DEBUG dbus:431 - Selecting objects of type Button with attributes: {'objectName': 'confirmButton'}
07:26:02.965 DEBUG _common:35 - Moving to object's globalRect coordinates.
07:26:02.966 DEBUG _uinput:332 - Tapping at: 642,130
07:26:03.067 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:26:03.482 DEBUG dbus:431 - Selecting objects of type ActivityIndicator with attributes: {'objectName': 'LoadingSpinner'}
07:26:03.995 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:26:04.045 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:26:04.560 DEBUG dbus:431 - Selecting objects of type MainView with attributes: {}
07:26:04.620 DEBUG dbus:431 - Selecting objects of type LocationTab with attributes: {'visible': True}
07:26:05.080 DEBUG dbus:431 - Selecting objects of type QQuickItem with attributes: {'focus': True}
07:26:05.256 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:26:05.440 DEBUG dbus:431 - Selecting objects of type QQuickText with attributes: {'objectName': 'CurrentTempText'}
07:26:05.684 INFO testcase:540 - waiting for process to exit.
07:26:05.685 INFO testcase:542 - Killing process 7612
07:26:06.691 INFO testresult:37 - OK: ubuntu_weather_app.tests.test_settings.TestSettings.test_switch_scale(with touch)
ADB_RC=0
command_type
testcase_test