Bug 39236 - Open an App via URL query
Open an App via URL query
Status: NEW
Product: UCS Test
Classification: Unclassified
Component: App Center
unspecified
Other Linux
: P5 enhancement (vote)
: ---
Assigned To: Julius Hinrichs
:
Depends on: 38544 39237
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-20 11:21 CEST by Stefan Gohmann
Modified: 2016-12-05 11:30 CET (History)
3 users (show)

See Also:
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:


Attachments
/usr/share/ucs-test/20_appcenter/19_can_apps_be_opened_via_url (1.61 KB, text/plain)
2016-12-01 17:30 CET, Julius Hinrichs
Details

Note You need to log in before you can comment on or make changes to this bug.
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.