Testcase: test_rename_file(with touch)

Build #:10:20140827.2:20140811.1
Arch:mako (Nexus 4)
Release:utopic
Variant:touch_stable
Artifacts
Console Log

Failure explanation

This test failure has not yet been categorized.
Log in to edit.

Test case data

testcase
test_rename_file(with touch)
testsuite
filemanager.tests.test_context_menu.ContextMenuTestCase
returncode
1
command
autopilot
stderr
_StringException: Binary content:
  FailedTestScreenshot (image/png)

/var/log/syslog: {{{
Aug 28 00:33:28 ubuntu-phablet kernel: [  332.849717] input: py-evdev-uinput as /devices/virtual/input/input8
Aug 28 00:33:28 ubuntu-phablet kernel: [  332.850419] keychord: using input dev py-evdev-uinput for fevent
Aug 28 00:33:29 ubuntu-phablet kernel: [  333.856950] wlan: [1426:E :SME] csrMoveTempScanResultsToMainList: 2908: 11d AP Bssid 00:21:d8:49:c8:e6 chan=
11, rssi = -68, countryCode US
Aug 28 00:33:29 ubuntu-phablet kernel: [  333.857713] wlan: [1426:E :SME] csrMoveTempScanResultsToMainList: 2908: 11d AP Bssid 00:21:d8:49:c8:e3 chan=
11, rssi = -67, countryCode US
Aug 28 00:33:29 ubuntu-phablet kernel: [  333.858507] wlan: [1426:E :SME] csrMoveTempScanResultsToMainList: 2908: 11d AP Bssid 74:91:1a:28:c5:dd chan=
161, rssi = -60, countryCode US
Aug 28 00:33:29 ubuntu-phablet kernel: [  333.859819] wlan: [1426:E :SME] csrMoveTempScanResultsToMainList: 2928: Information about current country
Bssid 74:91:1a:28:c5:dd chan= 161, rssi = -60, countryCode US
}}}

Application Log (com.ubuntu.filemanager_filemanager_0.3.260): {{{
Testability driver loaded. Wire protocol version is "1.4".
Trying to load QML from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/lib/arm-linux-gnueabihf/bin/qml/filemanager.qml"
Trying to load QML from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/filemanager.qml"
using main qml file from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/filemanager.qml"
Location:  "/tmp/tmpf60y7ily"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/tmp/tmpf60y7ily"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/tmp/tmpf60y7ily"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
bool PamAuthentication::requireAuthentication() Querying if authentication required
bool PamAuthentication::requireAuthentication() Return value false
qml: Path changed to: /tmp/tmpf60y7ily
Location:  "/tmp/tmpf60y7ily"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/"
Location:  "/tmp/tmpf60y7ily"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/"
bool PamAuthentication::requireAuthentication() Querying if authentication required
bool PamAuthentication::requireAuthentication() Return value false
UbuntuWindow - regular geometry
UbuntuWindow::handleSurfaceFocusChange(focused=true)
UbuntuWindow::handleSurfaceResize(width=768, height=1226)
qml: FolderListDelegate onPressAndHold
qml: Copy on row called for to_copy 1
qml: CliboardUrlsCounter after copy 1
qml: Changing to dir /tmp/tmpf60y7ily/destination
qml: Path changed to: /tmp/tmpf60y7ily/destination
void DirModel::setPath(const QString&) DirModel_QML_127(0xe87890) Ignoring path change request, request already running in
"/tmp/tmpf60y7ily/destination"
qml: Actions
qml: Pasting to current folder items of count 1
qml: Creating dialog: 2
qml: On progress  0 1 0
qml: On progress  1 1 100
qml: All files processed, closing progress dialog
QString DirModel::parentPath() const DirModel_QML_127(0xe87890) returning "/tmp/tmpf60y7ily"
qml: Path changed to: /tmp/tmpf60y7ily
void DirModel::setPath(const QString&) DirModel_QML_127(0xe87890) Ignoring path change request, request already running in "/tmp/tmpf60y7ily"
Testability driver loaded. Wire protocol version is "1.4".
Trying to load QML from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/lib/arm-linux-gnueabihf/bin/qml/filemanager.qml"
Trying to load QML from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/filemanager.qml"
using main qml file from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/filemanager.qml"
Location:  "/tmp/tmp5cnfxmh0"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/tmp/tmp5cnfxmh0"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/tmp/tmp5cnfxmh0"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
bool PamAuthentication::requireAuthentication() Querying if authentication required
bool PamAuthentication::requireAuthentication() Return value false
qml: Path changed to: /tmp/tmp5cnfxmh0
Location:  "/tmp/tmp5cnfxmh0"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/"
Location:  "/tmp/tmp5cnfxmh0"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/"
bool PamAuthentication::requireAuthentication() Querying if authentication required
bool PamAuthentication::requireAuthentication() Return value false
UbuntuWindow - regular geometry
UbuntuWindow::handleSurfaceFocusChange(focused=true)
UbuntuWindow::handleSurfaceResize(width=768, height=1226)
qml: FolderListDelegate onPressAndHold
qml: Delete
qml: Delete accepted for filePath, fileName /tmp/tmp5cnfxmh0/tmpfm7vh8epj0 tmpfm7vh8epj0
qml: Doing delete
qml: Creating dialog: 2
qml: On progress  0 1 0
qml: On progress  1 1 100
qml: All files processed, closing progress dialog
Testability driver loaded. Wire protocol version is "1.4".
Trying to load QML from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/lib/arm-linux-gnueabihf/bin/qml/filemanager.qml"
Trying to load QML from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/filemanager.qml"
using main qml file from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/filemanager.qml"
Location:  "/tmp/tmpdbyzpl64"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/tmp/tmpdbyzpl64"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/tmp/tmpdbyzpl64"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
bool PamAuthentication::requireAuthentication() Querying if authentication required
bool PamAuthentication::requireAuthentication() Return value false
qml: Path changed to: /tmp/tmpdbyzpl64
Location:  "/tmp/tmpdbyzpl64"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/"
Location:  "/tmp/tmpdbyzpl64"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/"
bool PamAuthentication::requireAuthentication() Querying if authentication required
bool PamAuthentication::requireAuthentication() Return value false
UbuntuWindow - regular geometry
UbuntuWindow::handleSurfaceFocusChange(focused=true)
UbuntuWindow::handleSurfaceResize(width=768, height=1226)
qml: FolderListDelegate onPressAndHold
qml: Properties
qml: calling method pageModel.curPathIsWritable()
qml: calling method pageModel.curPathModifiedDate()
qml: calling method pageModel.curPathAccessedDate()
Testability driver loaded. Wire protocol version is "1.4".
Trying to load QML from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/lib/arm-linux-gnueabihf/bin/qml/filemanager.qml"
Trying to load QML from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/filemanager.qml"
using main qml file from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/filemanager.qml"
Location:  "/tmp/tmpof_q3wej"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/tmp/tmpof_q3wej"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/tmp/tmpof_q3wej"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
bool PamAuthentication::requireAuthentication() Querying if authentication required
bool PamAuthentication::requireAuthentication() Return value false
qml: Path changed to: /tmp/tmpof_q3wej
Location:  "/tmp/tmpof_q3wej"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/"
Location:  "/tmp/tmpof_q3wej"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/"
bool PamAuthentication::requireAuthentication() Querying if authentication required
bool PamAuthentication::requireAuthentication() Return value false
UbuntuWindow - regular geometry
UbuntuWindow::handleSurfaceFocusChange(focused=true)
UbuntuWindow::handleSurfaceResize(width=768, height=1226)
qml: Changing to dir /tmp/tmpof_q3wej/tmpfmx1dgnjzi
qml: Path changed to: /tmp/tmpof_q3wej/tmpfmx1dgnjzi
void DirModel::setPath(const QString&) DirModel_QML_115(0x385870) Ignoring path change request, request already running in
"/tmp/tmpof_q3wej/tmpfmx1dgnjzi"
QString DirModel::parentPath() const DirModel_QML_115(0x385870) returning "/tmp/tmpof_q3wej"
qml: Path changed to: /tmp/tmpof_q3wej
void DirModel::setPath(const QString&) DirModel_QML_115(0x385870) Ignoring path change request, request already running in "/tmp/tmpof_q3wej"
Testability driver loaded. Wire protocol version is "1.4".
Trying to load QML from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/lib/arm-linux-gnueabihf/bin/qml/filemanager.qml"
Trying to load QML from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/filemanager.qml"
using main qml file from: "/usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/filemanager.qml"
Location:  "/tmp/tmphxrlbhyy"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/tmp/tmphxrlbhyy"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/tmp/tmphxrlbhyy"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
bool PamAuthentication::requireAuthentication() Querying if authentication required
bool PamAuthentication::requireAuthentication() Return value false
qml: Path changed to: /tmp/tmphxrlbhyy
Location:  "/tmp/tmphxrlbhyy"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/"
Location:  "/tmp/tmphxrlbhyy"
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  ""
Location:  "/"
bool PamAuthentication::requireAuthentication() Querying if authentication required
bool PamAuthentication::requireAuthentication() Return value false
UbuntuWindow - regular geometry
UbuntuWindow::handleSurfaceFocusChange(focused=true)
UbuntuWindow::handleSurfaceResize(width=768, height=1226)
qml: FolderListDelegate onPressAndHold
qml: Rename
qml: Rename accepted tmpfmcvn4fx54
qml: Rename commensed, modelRow/inputText 0 tmpfmcvn4fx54
bool DirModel::rename(int, const QString&) DirModel_QML_127(0x1de8878) Rename returned error code:  10 "Destination file is the same file."
file:///usr/share/click/preinstalled/com.ubuntu.filemanager/0.3.260/qml/ui/FolderListPage.qml:516: ReferenceError: delegate is not defined
}}}

test-log: {{{
00:33:12.306 WARNING testcase:115 - No tracing available - install the python-autopilot-trace package!
00:33:12.314 WARNING testcase:162 - Process manager backend unavailable, application snapshot support disabled.
00:33:12.315 DEBUG __init__:89 - Directory Listing for HOME
[]
00:33:12.316 DEBUG __init__:90 - File count in HOME is 0
00:33:12.317 INFO logging:45 - ContextMenuTestCase: launch_test_click. Arguments (). Keyword arguments: {}.
00:33:12.318 INFO _launcher:280 - Attempting to launch click application '(default)' from click package  'com.ubuntu.filemanager' and URIs ''
00:33:13.093 INFO _launcher:120 - Attempting to launch application 'com.ubuntu.filemanager_filemanager_0.3.260' with URIs '' via upstart-app-launch
00:33:22.466 DEBUG fixture_setup:42 - Created temporary file /tmp/tmphxrlbhyy/tmpfmcvn4fx54 in /tmp/tmphxrlbhyy.
00:33:22.468 DEBUG __init__:191 - Directory Listing for HOME
['tmpfmcvn4fx54', '.local', '.cache', '.config']
00:33:22.634 DEBUG dbus:352 - Selecting objects of type FolderListDelegate with attributes: {}
00:33:23.750 DEBUG dbus:352 - Selecting objects of type FolderListDelegate with attributes: {}
00:33:23.961 WARNING _header:240 - Header is an internal QML component of Ubuntu.Components and its API may change or be removed at any moment. Please
use MainView and Page instead.
00:33:24.059 INFO logging:45 - MainView: Rename a file or directory. Arguments ('tmpfmcvn4fx54', 'tmpfmcvn4fx54edit'). Keyword arguments: {}.
00:33:24.060 INFO logging:45 - MainView: Open the list of available actions of a file or directory. Arguments ('tmpfmcvn4fx54',). Keyword arguments:
{}.
00:33:24.103 DEBUG dbus:352 - Selecting objects of type FolderListDelegate with attributes: {}
00:33:24.319 DEBUG _common:45 - Moving to object's globalRect coordinates.
00:33:24.320 DEBUG _uinput:497 - Pressing at: 384,357
00:33:26.325 DEBUG _uinput:506 - Releasing
00:33:27.074 DEBUG dbus:352 - Selecting objects of type Empty with attributes: {}
00:33:27.289 DEBUG _common:45 - Moving to object's globalRect coordinates.
00:33:27.290 DEBUG _uinput:470 - Tapping at: 384,819
00:33:29.087 DEBUG _common:45 - Moving to object's globalRect coordinates.
00:33:29.088 DEBUG _uinput:470 - Tapping at: 384,642
00:33:29.526 DEBUG _common:45 - Moving to object's globalRect coordinates.
00:33:29.527 DEBUG _uinput:470 - Tapping at: 613,642
00:33:31.581 INFO logging:45 - TemporaryFileInDirectory: Delete a file, if it exists. Arguments ('/tmp/tmphxrlbhyy/tmpfmcvn4fx54',). Keyword
arguments: {}.
00:33:31.583 DEBUG fixture_setup:49 - Deleting file.
}}}

Traceback (most recent call last):
  File "/home/phablet/autopilot/filemanager/tests/test_context_menu.py", line 53, in test_rename_file
    self.main_view.rename(original_file, new_name)
  File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/home/phablet/autopilot/filemanager/emulators.py", line 90, in rename
    confirm_dialog.enter_text(new_name)
  File "/home/phablet/autopilot/filemanager/emulators.py", line 472, in enter_text
    text_field.write(text, clear)
  File "/home/phablet/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py", line 44, in write
    self.clear()
  File "/home/phablet/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py", line 57, in clear
    self.text.wait_for('')
  File "/usr/lib/python3/dist-packages/autopilot/introspection/types.py", line 155, in wait_for
    _, new_state = self.parent._get_new_state()
  File "/usr/lib/python3/dist-packages/autopilot/introspection/dbus.py", line 429, in _get_new_state
    raise StateNotFoundError(self.__class__.__name__, id=self.id)
autopilot.exceptions.StateNotFoundError: Object not found with name 'TextField' and properties {'id': 32}.

Tips on minimizing the occurrence of this failureare available here:
http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot/faq/troubleshooting.html

command_type
testcase_test