Bug 39236

Summary: Open an App via URL query
Product: UCS Test Reporter: Stefan Gohmann <gohmann>
Component: App CenterAssignee: Julius Hinrichs <hinrichs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 CC: best, hinrichs, wiesenthal
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on: 38544, 39237    
Bug Blocks:    
Attachments: /usr/share/ucs-test/20_appcenter/19_can_apps_be_opened_via_url

Description Stefan Gohmann univentionstaff 2015-08-20 11:21:25 CEST
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
Comment 1 Julius Hinrichs univentionstaff 2016-12-01 17:30:54 CET
Created attachment 8273 [details]
/usr/share/ucs-test/20_appcenter/19_can_apps_be_opened_via_url
Comment 2 Florian Best univentionstaff 2016-12-01 17:45:18 CET
(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,)
Comment 3 Florian Best univentionstaff 2016-12-02 16:19:35 CET
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.