1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109 | Tests running...
======================================================================
ERROR: ubuntu_docviewer_app.tests.test_docviewer.TestMainWindow.test_go_to_page_pdf_file
----------------------------------------------------------------------
Binary content:
FailedTestScreenshot (image/png)
Empty attachments:
process-stdout (/home/letozaf/autopilot-tests/build-remove-single-file-Desktop-Default/src/app/ubuntu-docviewer-app)
/var/log/syslog: {{{
Jun 6 17:29:41 letozaf-HP-G62-Notebook-PC kernel: [ 459.334357] input: py-evdev-uinput as /devices/virtual/input/input22
Jun 6 17:29:41 letozaf-HP-G62-Notebook-PC kernel: [ 459.560618] input: autopilot-finger as /devices/virtual/input/input23
}}}
process-return-code (/home/letozaf/autopilot-tests/build-remove-single-file-Desktop-Default/src/app/ubuntu-docviewer-app): {{{-15}}}
process-stderr (/home/letozaf/autopilot-tests/build-remove-single-file-Desktop-Default/src/app/ubuntu-docviewer-app): {{{
Testability driver loaded. Wire protocol version is "1.4".
QObject::connect: No such signal ContentCommunicator::documentImported()
APP_ID isn't set, the handler can not be registered
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
UCUriHandler: Empty "APP_ID" environment variable, ignoring.
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
file:///home/letozaf/autopilot-tests/build-remove-single-file-Desktop-Default/src/app/qml/documentPage/DocumentPagePickModeHeader.qml:45: TypeError: Cannot read property 'count' of undefined
qml: Path of the document: file:///home/letozaf/autopilot-tests/ubuntu-docviewer-app/tests/autopilot/ubuntu_docviewer_app/files/FCM-91.pdf
[FILE] Extracting information from the file...
[FILE] Requested file mime type: QVariant(QString, "application/pdf")
Loading document...
Document loaded successfully !
[PDF] Parsing toc model
Populating model...
Ideal number of image providers is: 4
Loading image provider(s)...
Image provider(s) loaded successfully !
[FILE] Path parsed as: "/home/letozaf/autopilot-tests/ubuntu-docviewer-app/tests/autopilot/ubuntu_docviewer_app/files/FCM-91.pdf"
Number of pages: 5
Model has been successfully populated!
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and actions.
file:///home/letozaf/autopilot-tests/build-remove-single-file-Desktop-Default/src/app/qml/pdfView/PdfView.qml:121: TypeError: Cannot read property 'status' of null
APP_ID isn't set, the handler ignored
}}}
test-log: {{{
17:29:39.982 WARNING _video:138 - Video capture file '/tmp/autopilot/ubuntu_docviewer_app.tests.test_docviewer.TestMainWindow.test_go_to_page_pdf_file.ogv' already exists, deleting.
17:29:39.983 DEBUG _video:79 - Starting: ['/usr/bin/recordmydesktop', '--no-sound', '--no-frame', '-o', '/tmp/autopilot/ubuntu_docviewer_app.tests.test_docviewer.TestMainWindow.test_go_to_page_pdf_file.ogv']
17:29:40.989 DEBUG utilities:44 - Possible backends: X11,UInput,OSK
17:29:41.036 WARNING utilities:57 - Can't create backend X11: DisplayConnectionError(':0', b'Invalid MIT-MAGIC-COOKIE-1 key')
17:29:41.158 DEBUG utilities:44 - Possible backends: UInput
17:29:41.158 DEBUG utilities:44 - Possible backends: X11,UPA
17:29:41.384 DEBUG utilities:44 - Possible backends: BAMF
17:29:41.398 DEBUG __init__:151 - Copying .Xauthority to /tmp/tmpuw9u04ue
17:29:41.398 INFO logging:45 - TestMainWindow: launch_test_local. Arguments (). Keyword arguments: {}.
17:29:41.399 INFO _launcher:373 - Attempting to launch application '/home/letozaf/autopilot-tests/build-remove-single-file-Desktop-Default/src/app/ubuntu-docviewer-app' with arguments 'ubuntu_docviewer_app/files/FCM-91.pdf' as a normal process
17:29:41.404 INFO _launcher:431 - Launching process: ['/home/letozaf/autopilot-tests/build-remove-single-file-Desktop-Default/src/app/ubuntu-docviewer-app', '-testability', 'ubuntu_docviewer_app/files/FCM-91.pdf']
17:29:42.965 WARNING _object_registry:194 - Generating introspection instance for type 'b'comubuntudocviewer'' based on generic class.
17:29:42.967 DEBUG utilities:44 - Possible backends: X11
17:29:42.968 WARNING utilities:57 - Can't create backend X11: DisplayConnectionError(':0', b'Invalid MIT-MAGIC-COOKIE-1 key')
17:29:43.214 INFO _launcher:544 - waiting for process to exit.
17:29:43.215 INFO _launcher:567 - Killing process 3478
17:29:43.231 DEBUG utilities:44 - Possible backends: BAMF
17:29:44.253 DEBUG utilities:44 - Possible backends: BAMF
}}}
traceback-1: {{{
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/autopilot/utilities.py", line 348, in action_on_test_end
obj.on_test_end(test_instance)
File "/usr/lib/python3/dist-packages/autopilot/input/_X11.py", line 496, in on_test_end
move_mouse_to_screen(0)
File "/usr/lib/python3/dist-packages/autopilot/display/__init__.py", line 71, in move_mouse_to_screen
Mouse.create().move(x, y, False)
File "/usr/lib/python3/dist-packages/autopilot/input/__init__.py", line 298, in create
return _pick_backend(backends, preferred_backend)
File "/usr/lib/python3/dist-packages/autopilot/utilities.py", line 62, in _pick_backend
"Unable to instantiate any backends\n%s" % '\n'.join(failure_reasons))
RuntimeError: Unable to instantiate any backends
X11: DisplayConnectionError(':0', b'Invalid MIT-MAGIC-COOKIE-1 key')
}}}
Traceback (most recent call last):
File "/home/letozaf/autopilot-tests/ubuntu-docviewer-app/tests/autopilot/ubuntu_docviewer_app/tests/test_docviewer.py", line 61, in test_go_to_page_pdf_file
self.launch_app()
File "/home/letozaf/autopilot-tests/ubuntu-docviewer-app/tests/autopilot/ubuntu_docviewer_app/tests/__init__.py", line 203, in launch_app
self.app = ubuntu_docviewer_app.DocviewerApp(self.launcher())
File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
return f(instance, *args, **kwargs)
File "/home/letozaf/autopilot-tests/ubuntu-docviewer-app/tests/autopilot/ubuntu_docviewer_app/tests/__init__.py", line 100, in launch_test_local
emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase)
File "/usr/lib/python3/dist-packages/autopilot/testcase.py", line 279, in launch_test_application
return launcher.launch(application, arguments, **launch_args)
File "/usr/lib/python3/dist-packages/autopilot/application/_launcher.py", line 384, in launch
pid=process.pid
File "/usr/lib/python3/dist-packages/autopilot/introspection/_search.py", line 183, in get_proxy_object_for_existing_process
emulator_base
File "/usr/lib/python3/dist-packages/autopilot/introspection/_search.py", line 422, in _make_proxy_object
return proxy_class(cls_state, path, backends.Backend(dbus_address))
File "/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_common.py", line 77, in __init__
self.pointing_device = get_pointing_device()
File "/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_common.py", line 49, in get_pointing_device
return input.Pointer(device=input_device_class.create())
File "/usr/lib/python3/dist-packages/autopilot/input/__init__.py", line 298, in create
return _pick_backend(backends, preferred_backend)
File "/usr/lib/python3/dist-packages/autopilot/utilities.py", line 62, in _pick_backend
"Unable to instantiate any backends\n%s" % '\n'.join(failure_reasons))
RuntimeError: Unable to instantiate any backends
X11: DisplayConnectionError(':0', b'Invalid MIT-MAGIC-COOKIE-1 key')
Ran 1 test in 10.781s
FAILED (failures=1)
|