Univention Bugzilla – Bug 39236
Open an App via URL query
Last modified: 2016-12-05 11:30:10 CET
We should add a test case for this feature. +++ This bug was initially created as a clone of Bug #38544 +++ It would be helpful to open an App in the UMC App Center uvia URL query, for example: http://demo.univention.de/univention-management-console/?module=appcenter&app=xrdp
Created attachment 8273 [details] /usr/share/ucs-test/20_appcenter/19_can_apps_be_opened_via_url
(In reply to Julius Hinrichs from comment #1) > Created attachment 8273 [details] > /usr/share/ucs-test/20_appcenter/19_can_apps_be_opened_via_url A little bit smarter version would be: from univention.testing.umc import UMCTestConnection APP_NAME = 'univention-demo' def main(): connection = UMCTestConnection() result = connection.request('appcenter/get', {'application': APP_NAME}}) assert result['id'] == APP_NAME, "result[id] is wrong: %r" % (result,)
Oh and by the way: The test case doesn't cover what is actually wanted. The test case should cover if one opens UMC with the direct query string: http://demo.univention.de/univention-management-console/?module=appcenter&app=xrdp That after logging in then the appcenter module opens with the specified app. Therefore in the test-script a browser has to be started. We already have a base for browser tests in branches/ucs-4.1/component/ucs-test-selenium/ucs-test/tests.