Testcase: test_album_view.TestAlbumView.test_add_photo

Build #:8:20131029.1:20131029
Arch:mako (Nexus 4)
Release:trusty
Variant:touch
Artifacts
Console Log

Test case data

testcase
test_album_view.TestAlbumView.test_add_photo
testsuite
/tmp/tmpRtiaMe/testsuites/gallery-app-autopilot
returncode
1
command
autopilot-run gallery_app.tests.test_album_view.TestAlbumView.test_add_photo
stdout
ADB_RC=0
Loading tests from: /usr/lib/python2.7/dist-packages

15:38:12.850 INFO autopilot:141 - Autopilot Source Version: 1.3.1
Autopilot Package Version: 1.3.1+13.10.20131003.1-0ubuntu1
15:38:13.243 INFO globals:49 - ************************************************************
15:38:13.247 INFO globals:50 - Starting test gallery_app.tests.test_album_view.TestAlbumView.test_add_photo_to_new_album
15:38:13.250 WARNING testcase:118 - No tracing available - install the python-autopilot-trace package!
15:38:13.265 WARNING testcase:155 - Process manager backend unavailable, application snapshot support disabled.
15:38:13.341 INFO __init__:156 - Launching process: ['/usr/bin/gallery-app', '-testability',
'--desktop_file_hint=/usr/share/applications/gallery-app.desktop', '/tmp/gallery-ap_sd']
15:38:15.282 DEBUG dbus:415 - Selecting objects of type QQuickView with attributes: {}
15:38:15.341 DEBUG dbus:415 - Selecting objects of type OrganicMediaList with attributes: {}
15:38:16.366 DEBUG dbus:415 - Selecting objects of type MainScreen with attributes: {}
15:38:16.436 DEBUG dbus:415 - Selecting objects of type Tabs with attributes: {}
15:38:16.456 DEBUG dbus:415 - Selecting objects of type Tab with attributes: {}
15:38:16.521 DEBUG emulators:131 - Switch to tab with index 0.
15:38:16.522 DEBUG dbus:415 - Selecting objects of type Tabs with attributes: {}
15:38:16.553 DEBUG dbus:415 - Selecting objects of type Tab with attributes: {}
15:38:16.600 DEBUG dbus:415 - Selecting objects of type Tab with attributes: {}
15:38:16.694 DEBUG emulators:140 - Current tab index: 1.
15:38:16.696 DEBUG emulators:118 - Switch to next tab.
15:38:16.696 DEBUG dbus:415 - Selecting objects of type Header with attributes: {'objectName': 'MainView_Header'}
15:38:16.862 DEBUG dbus:415 - Selecting objects of type TabBar with attributes: {}
15:38:16.886 DEBUG emulators:257 - Click the tab bar to enable selection mode.
15:38:16.905 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:16.906 DEBUG _uinput:331 - Tapping at: 384,125
15:38:17.046 DEBUG emulators:263 - Click the next tab bar button.
15:38:17.048 DEBUG dbus:415 - Selecting objects of type QQuickPathView with attributes: {}
15:38:17.122 DEBUG dbus:415 - Selecting objects of type AbstractButton with attributes: {}
15:38:17.182 DEBUG dbus:415 - Selecting objects of type AbstractButton with attributes: {}
15:38:17.406 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:17.407 DEBUG _uinput:331 - Tapping at: 442,125
15:38:17.516 DEBUG dbus:415 - Selecting objects of type TabBarStyle with attributes: {}
15:38:18.757 DEBUG dbus:415 - Selecting objects of type Tabs with attributes: {}
15:38:18.821 DEBUG dbus:415 - Selecting objects of type Tab with attributes: {}
15:38:18.958 DEBUG emulators:140 - Current tab index: 2.
15:38:18.959 DEBUG emulators:118 - Switch to next tab.
15:38:18.961 DEBUG dbus:415 - Selecting objects of type Header with attributes: {'objectName': 'MainView_Header'}
15:38:19.128 DEBUG dbus:415 - Selecting objects of type TabBar with attributes: {}
15:38:19.169 DEBUG emulators:257 - Click the tab bar to enable selection mode.
15:38:19.192 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:19.193 DEBUG _uinput:331 - Tapping at: 384,125
15:38:19.333 DEBUG emulators:263 - Click the next tab bar button.
15:38:19.334 DEBUG dbus:415 - Selecting objects of type QQuickPathView with attributes: {}
15:38:19.389 DEBUG dbus:415 - Selecting objects of type AbstractButton with attributes: {}
15:38:19.459 DEBUG dbus:415 - Selecting objects of type AbstractButton with attributes: {}
15:38:19.572 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:19.572 DEBUG _uinput:331 - Tapping at: 463,125
15:38:19.678 DEBUG dbus:415 - Selecting objects of type TabBarStyle with attributes: {}
15:38:20.801 DEBUG dbus:415 - Selecting objects of type Tabs with attributes: {}
15:38:20.891 DEBUG dbus:415 - Selecting objects of type Tab with attributes: {}
15:38:21.015 DEBUG dbus:415 - Selecting objects of type QQuickLoader with attributes: {'objectName': 'albumsCheckerboardLoader'}
15:38:21.536 DEBUG dbus:415 - Selecting objects of type CheckerboardDelegate with attributes: {'objectName': 'checkerboardDelegate'}
15:38:22.952 DEBUG dbus:415 - Selecting objects of type MainScreen with attributes: {}
15:38:23.028 DEBUG dbus:415 - Selecting objects of type Toolbar with attributes: {}
15:38:23.152 DEBUG _uinput:365 - Dragging from 384,1279 to 384,1218
15:38:24.534 DEBUG dbus:415 - Selecting objects of type ActionItem with attributes: {'objectName': 'addButton'}
15:38:24.612 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:24.613 DEBUG _uinput:331 - Tapping at: 579,1208
15:38:24.825 DEBUG dbus:415 - Selecting objects of type AlbumEditorAnimated with attributes: {}
15:38:26.431 DEBUG dbus:415 - Selecting objects of type QQuickImage with attributes: {'objectName': 'albumCoverImage'}
15:38:26.817 DEBUG _uinput:331 - Tapping at: 384,1048
15:38:26.919 DEBUG dbus:415 - Selecting objects of type CheckerboardDelegate with attributes: {'objectName': 'checkerboardDelegate'}
15:38:27.834 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:27.937 DEBUG _uinput:331 - Tapping at: 201,445
15:38:28.044 DEBUG dbus:415 - Selecting objects of type AlbumViewerAnimated with attributes: {'objectName': 'albumViewerAnimated'}
15:38:30.790 DEBUG dbus:415 - Selecting objects of type AlbumViewer with attributes: {'objectName': 'albumViewer'}
15:38:32.520 DEBUG dbus:415 - Selecting objects of type FramePortrait with attributes: {'visible': True, 'isLoaded': True}
15:38:32.660 WARNING dbus:522 - Your query '/gallery-app[id=1]//FramePortrait' returned a lot of data (33 items). This is likely to be slow. You may
want to consider optimising your query to return fewer items.
15:38:32.843 DEBUG dbus:415 - Selecting objects of type QQuickImage with attributes: {'visible': True, 'objectName': 'addButton'}
15:38:34.586 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:34.686 DEBUG _uinput:331 - Tapping at: 384,669
15:38:34.788 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:35.055 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:35.363 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:35.636 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:35.909 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:36.171 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:36.469 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:36.757 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:37.030 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:37.311 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:37.573 DEBUG dbus:415 - Selecting objects of type MediaSelector with attributes: {}
15:38:37.666 INFO testcase:552 - waiting for process to exit.
15:38:37.667 INFO testcase:554 - Killing process 5202
15:38:38.032 ERROR testresult:35 - ERROR: gallery_app.tests.test_album_view.TestAlbumView.test_add_photo_to_new_album
15:38:38.033 ERROR testresult:35 - traceback: {{{
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gallery_app/tests/test_album_view.py", line 100, in test_add_photo_to_new_album
self.ensure_media_selector_is_fully_open()
File "/usr/lib/python2.7/dist-packages/gallery_app/tests/test_album_view.py", line 45, in ensure_media_selector_is_fully_open
self.assertThat(media_selector.opacity, Eventually(Equals(1.0)))
AttributeError: 'NoneType' object has no attribute 'opacity'
}}}
15:38:38.034 ERROR testresult:35 - process-return-code: {{{
-15}}}
15:38:38.035 ERROR testresult:35 - process-stderr: {{{
/usr/bin/gallery-app: invalid option -- 't'
/usr/bin/gallery-app: invalid option -- 'e'
/usr/bin/gallery-app: invalid option -- 's'
/usr/bin/gallery-app: invalid option -- 't'
/usr/bin/gallery-app: invalid option -- 'a'
/usr/bin/gallery-app: invalid option -- 'b'
/usr/bin/gallery-app: invalid option -- 'i'
/usr/bin/gallery-app: invalid option -- 'l'
/usr/bin/gallery-app: invalid option -- 'i'
/usr/bin/gallery-app: invalid option -- 't'
/usr/bin/gallery-app: invalid option -- 'y'
loaded the dummy plugin
loaded the Linux plugin
Registered the AalSensorPlugin types

Loading testability driver.
virtual void com::ubuntu::content::Hub::register_import_export_handler(com::ubuntu::content::ImportExportHandler*)
APP_ID isn't set, the handler can not be registered
callbacks 0x40194d8d 0x40194d39
creating surface at (0, 58) with size (768, 1222) with title 'Window 1'This plugin does not support propagateSizeHints()
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
Opening ("/tmp/gallery-ap_sd") ...
Opened ("/tmp/gallery-ap_sd") 2 media files loaded in 103 ms - 51.5 ms per media
unity::action::ActionManager::ActionManager(QObject*):
Could not determine application identifier. HUD will not work properly.
Provide your application identifier in $APP_ID environment variable.
Detectable autorepeat not supported.
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QProcess: Destroyed while process ("echo") is still running.
QProcess: Destroyed while process ("echo") is still running.
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/MainView.qml:257: TypeError: Cannot call method 'hasOwnProperty' of null
QProcess: Destroyed while process ("echo") is still running.
QProcess: Destroyed while process ("echo") is still running.
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/MainView.qml:257: TypeError: Cannot call method 'hasOwnProperty' of null
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
}}}
15:38:38.041 ERROR testresult:35 - process-stdout: {{{
}}}
15:38:38.043 INFO globals:49 - ************************************************************
15:38:38.044 INFO globals:50 - Starting test gallery_app.tests.test_album_view.TestAlbumView.test_add_photo
15:38:38.045 WARNING testcase:118 - No tracing available - install the python-autopilot-trace package!
15:38:38.049 WARNING testcase:155 - Process manager backend unavailable, application snapshot support disabled.
15:38:38.071 INFO __init__:156 - Launching process: ['/usr/bin/gallery-app', '-testability',
'--desktop_file_hint=/usr/share/applications/gallery-app.desktop', '/tmp/gallery-ap_sd']
15:38:39.976 DEBUG dbus:415 - Selecting objects of type QQuickView with attributes: {}
15:38:40.038 DEBUG dbus:415 - Selecting objects of type OrganicMediaList with attributes: {}
15:38:41.081 DEBUG dbus:415 - Selecting objects of type MainScreen with attributes: {}
15:38:41.149 DEBUG dbus:415 - Selecting objects of type Tabs with attributes: {}
15:38:41.171 DEBUG dbus:415 - Selecting objects of type Tab with attributes: {}
15:38:41.252 DEBUG emulators:131 - Switch to tab with index 0.
15:38:41.253 DEBUG dbus:415 - Selecting objects of type Tabs with attributes: {}
15:38:41.276 DEBUG dbus:415 - Selecting objects of type Tab with attributes: {}
15:38:41.332 DEBUG dbus:415 - Selecting objects of type Tab with attributes: {}
15:38:41.436 DEBUG emulators:140 - Current tab index: 1.
15:38:41.437 DEBUG emulators:118 - Switch to next tab.
15:38:41.438 DEBUG dbus:415 - Selecting objects of type Header with attributes: {'objectName': 'MainView_Header'}
15:38:41.591 DEBUG dbus:415 - Selecting objects of type TabBar with attributes: {}
15:38:41.617 DEBUG emulators:257 - Click the tab bar to enable selection mode.
15:38:41.644 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:41.646 DEBUG _uinput:331 - Tapping at: 384,125
15:38:41.782 DEBUG emulators:263 - Click the next tab bar button.
15:38:41.784 DEBUG dbus:415 - Selecting objects of type QQuickPathView with attributes: {}
15:38:41.855 DEBUG dbus:415 - Selecting objects of type AbstractButton with attributes: {}
15:38:41.940 DEBUG dbus:415 - Selecting objects of type AbstractButton with attributes: {}
15:38:42.161 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:42.161 DEBUG _uinput:331 - Tapping at: 442,125
15:38:42.263 DEBUG dbus:415 - Selecting objects of type TabBarStyle with attributes: {}
15:38:43.545 DEBUG dbus:415 - Selecting objects of type Tabs with attributes: {}
15:38:43.581 DEBUG dbus:415 - Selecting objects of type Tab with attributes: {}
15:38:43.731 DEBUG emulators:140 - Current tab index: 2.
15:38:43.732 DEBUG emulators:118 - Switch to next tab.
15:38:43.733 DEBUG dbus:415 - Selecting objects of type Header with attributes: {'objectName': 'MainView_Header'}
15:38:43.900 DEBUG dbus:415 - Selecting objects of type TabBar with attributes: {}
15:38:43.936 DEBUG emulators:257 - Click the tab bar to enable selection mode.
15:38:43.958 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:43.960 DEBUG _uinput:331 - Tapping at: 384,125
15:38:44.093 DEBUG emulators:263 - Click the next tab bar button.
15:38:44.095 DEBUG dbus:415 - Selecting objects of type QQuickPathView with attributes: {}
15:38:44.152 DEBUG dbus:415 - Selecting objects of type AbstractButton with attributes: {}
15:38:44.264 DEBUG dbus:415 - Selecting objects of type AbstractButton with attributes: {}
15:38:44.366 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:44.367 DEBUG _uinput:331 - Tapping at: 463,125
15:38:44.469 DEBUG dbus:415 - Selecting objects of type TabBarStyle with attributes: {}
15:38:45.624 DEBUG dbus:415 - Selecting objects of type Tabs with attributes: {}
15:38:45.746 DEBUG dbus:415 - Selecting objects of type Tab with attributes: {}
15:38:45.917 DEBUG dbus:415 - Selecting objects of type QQuickLoader with attributes: {'objectName': 'albumsCheckerboardLoader'}
15:38:46.452 DEBUG dbus:415 - Selecting objects of type CheckerboardDelegate with attributes: {'objectName': 'checkerboardDelegate'}
15:38:47.871 DEBUG dbus:415 - Selecting objects of type CheckerboardDelegate with attributes: {'objectName': 'checkerboardDelegate'}
15:38:48.358 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:38:48.459 DEBUG _uinput:331 - Tapping at: 201,445
15:38:48.561 DEBUG dbus:415 - Selecting objects of type AlbumViewerAnimated with attributes: {'objectName': 'albumViewerAnimated'}
15:38:59.399 INFO testcase:552 - waiting for process to exit.
15:38:59.400 INFO testcase:554 - Killing process 5296
15:38:59.691 ERROR testresult:35 - FAIL: gallery_app.tests.test_album_view.TestAlbumView.test_add_photo
15:38:59.691 ERROR testresult:35 - traceback: {{{
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gallery_app/tests/test_album_view.py", line 60, in test_add_photo
self.open_first_album()
File "/usr/lib/python2.7/dist-packages/gallery_app/tests/__init__.py", line 177, in open_first_album
self.ensure_view_is_fully_open()
File "/usr/lib/python2.7/dist-packages/gallery_app/tests/__init__.py", line 181, in ensure_view_is_fully_open
self.assertThat(animated_view.isOpen, Eventually(Equals(True)))
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: After 10.0 seconds test on AlbumViewerAnimated.isOpen failed: True != dbus.Boolean(False, variant_level=1)
}}}
15:38:59.692 ERROR testresult:35 - process-return-code: {{{
-15}}}
15:38:59.692 ERROR testresult:35 - process-stderr: {{{
/usr/bin/gallery-app: invalid option -- 't'
/usr/bin/gallery-app: invalid option -- 'e'
/usr/bin/gallery-app: invalid option -- 's'
/usr/bin/gallery-app: invalid option -- 't'
/usr/bin/gallery-app: invalid option -- 'a'
/usr/bin/gallery-app: invalid option -- 'b'
/usr/bin/gallery-app: invalid option -- 'i'
/usr/bin/gallery-app: invalid option -- 'l'
/usr/bin/gallery-app: invalid option -- 'i'
/usr/bin/gallery-app: invalid option -- 't'
/usr/bin/gallery-app: invalid option -- 'y'
loaded the dummy plugin
loaded the Linux plugin
Registered the AalSensorPlugin types

Loading testability driver.
virtual void com::ubuntu::content::Hub::register_import_export_handler(com::ubuntu::content::ImportExportHandler*)
APP_ID isn't set, the handler can not be registered
callbacks 0x400dcd8d 0x400dcd39
creating surface at (0, 58) with size (768, 1222) with title 'Window 1'This plugin does not support propagateSizeHints()
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
Opening ("/tmp/gallery-ap_sd") ...
Opened ("/tmp/gallery-ap_sd") 2 media files loaded in 109 ms - 54.5 ms per media
unity::action::ActionManager::ActionManager(QObject*):
Could not determine application identifier. HUD will not work properly.
Provide your application identifier in $APP_ID environment variable.
Detectable autorepeat not supported.
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QProcess: Destroyed while process ("echo") is still running.
QProcess: Destroyed while process ("echo") is still running.
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/MainView.qml:257: TypeError: Cannot call method 'hasOwnProperty' of null
QProcess: Destroyed while process ("echo") is still running.
QProcess: Destroyed while process ("echo") is still running.
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
}}}
15:38:59.693 ERROR testresult:35 - process-stdout: {{{
}}}
ADB_RC=1
command_type
testcase_test