Merge lp:~abreu-alexandre/webbrowser-app/fix-container-ap-tests into lp:webbrowser-app

Proposed by Alexandre Abreu
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 783
Merged at revision: 791
Proposed branch: lp:~abreu-alexandre/webbrowser-app/fix-container-ap-tests
Merge into: lp:webbrowser-app
Diff against target: 21 lines (+2/-2)
1 file modified
tests/autopilot/webapp_container/tests/__init__.py (+2/-2)
To merge this branch: bzr merge lp:~abreu-alexandre/webbrowser-app/fix-container-ap-tests
Reviewer Review Type Date Requested Status
Olivier Tilloy Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+240627@code.launchpad.net

Commit message

Fix AP tests for webapp-container

Description of the change

Fix AP tests for webapp-container

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:782
http://jenkins.qa.ubuntu.com/job/webbrowser-app-ci/1235/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/6460
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/4289/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/webbrowser-app-utopic-amd64-ci/434
    SUCCESS: http://jenkins.qa.ubuntu.com/job/webbrowser-app-utopic-armhf-ci/434
        deb: http://jenkins.qa.ubuntu.com/job/webbrowser-app-utopic-armhf-ci/434/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/webbrowser-app-utopic-i386-ci/434
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/6058
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/7712
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/7712/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/15421
    FAILURE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/3642/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/4683
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/4683/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/webbrowser-app-ci/1235/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :
Download full text (4.7 KiB)

This change is obviously good, but it’s not enough to make webapp_container tests pass on device (I’m testing on flo with vivid image #8). I’m seeing the following error:

09:51:06.061 INFO _logging:41 - Starting test webapp_container.tests.test_redirection_pattern.WebappContainerRedirectionPatternTestCase.test_browse_to_redirection_pattern_url
09:51:06.067 WARNING testcase:115 - No tracing available - install the python-autopilot-trace package!
09:51:06.088 WARNING testcase:175 - Process manager backend unavailable, application snapshot support disabled.
09:51:06.099 INFO fake_servers:76 - now serving on port 48459
09:51:06.302 WARNING utilities:263 - WARNING: in file "/usr/lib/python3/dist-packages/webapp_container/tests/__init__.py", line 59 in launch_webcontainer_app
This function is deprecated. Please use 'fixtures.EnvironmentVariable' instead.

09:51:06.309 WARNING utilities:263 - WARNING: in file "/usr/lib/python3/dist-packages/webapp_container/tests/__init__.py", line 59 in launch_webcontainer_app
This function is deprecated. Please use 'fixtures.EnvironmentVariable' instead.

09:51:06.310 INFO _launcher:373 - Attempting to launch application 'b'/usr/bin/webapp-container'' with arguments '--popup-redirection-url-prefix=http://localhost:48459/redirect?url=([^&]*).* http://localhost:48459/get-redirect --desktop_file_hint=/usr/share/applications/webbrowser-app.desktop' as a normal process
09:51:06.356 INFO _launcher:431 - Launching process: ['/usr/bin/webapp-container', '-testability', '--popup-redirection-url-prefix=http://localhost:48459/redirect\?url=([^&]*).*', 'http://localhost:48459/get-redirect', '--desktop_file_hint=/usr/share/applications/webbrowser-app.desktop']
09:51:09.658 INFO _launcher:544 - waiting for process to exit.
09:51:09.660 INFO _launcher:567 - Killing process 5488
09:51:10.124 ERROR testresult:44 - ERROR: webapp_container.tests.test_redirection_pattern.WebappContainerRedirectionPatternTestCase.test_browse_to_redirection_pattern_url
09:51:10.125 ERROR testresult:44 - /var/log/syslog: {{{
}}}
09:51:10.126 ERROR testresult:44 - process-stderr (/usr/bin/webapp-container): {{{
/usr/bin/webapp-container: invalid option -- 't'
/usr/bin/webapp-container: invalid option -- 'e'
/usr/bin/webapp-container: invalid option -- 's'
/usr/bin/webapp-container: invalid option -- 't'
/usr/bin/webapp-container: invalid option -- 'a'
/usr/bin/webapp-container: invalid option -- 'b'
/usr/bin/webapp-container: invalid option -- 'i'
/usr/bin/webapp-container: invalid option -- 'l'
/usr/bin/webapp-container: invalid option -- 'i'
/usr/bin/webapp-container: invalid option -- 't'
/usr/bin/webapp-container: invalid option -- 'y'
/usr/bin/webapp-container: unrecognized option '--popup-redirection-url-prefix=http://localhost:48459/redirect?url=([^&]*).*'
Testability driver loaded. Wire protocol version is "1.4".
Invalid webapps installation
Invalid webapps installation
Using Oxide as the web engine backend
Empty path in webapps model search path update request
QQmlExpression: Expression file:///usr/share/webbrowser-app/webcontainer/WebApp.qml:171:25 depends on non-NOTIFYable properties:
unity::action::qml::ActionManager::globalContext
Empty pat...

Read more...

review: Needs Fixing
783. By Alexandre Abreu

Account for the flackiness due to the asynchronously loaded oxide webview

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

updated

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

Looks good, thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/webapp_container/tests/__init__.py'
2--- tests/autopilot/webapp_container/tests/__init__.py 2014-11-03 18:43:48 +0000
3+++ tests/autopilot/webapp_container/tests/__init__.py 2014-11-05 18:43:29 +0000
4@@ -41,7 +41,7 @@
5
6 class WebappContainerTestCaseBase(AutopilotTestCase):
7 def setUp(self):
8- self.pointing_device = toolkit_emulators.get_pointing_device()
9+ self.pointing_device = uitk.get_pointing_device()
10 super(WebappContainerTestCaseBase, self).setUp()
11
12 def get_webcontainer_app_path(self):
13@@ -84,7 +84,7 @@
14 def get_oxide_webview(self):
15 container = self.get_webview().select_single(
16 objectName='containerWebviewLoader')
17- return container.select_single('WebViewImplOxide')
18+ return container.wait_select_single('WebViewImplOxide')
19
20 def assert_page_eventually_loaded(self, url):
21 webview = self.get_oxide_webview()

Subscribers

People subscribed via source and target branches

to status/vote changes: