Bug 46432 - ucs-test-selenium should depend on xvfb and python-selenium
ucs-test-selenium should depend on xvfb and python-selenium
Status: NEW
Product: UCS Test
Classification: Unclassified
Component: UMC
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
Depends on:
  Show dependency treegraph
Reported: 2018-02-27 11:40 CET by Arvid Requate
Modified: 2019-02-27 18:05 CET (History)
0 users

See Also:
What kind of report is it?: ---
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:


Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2018-02-27 11:40:19 CET
ucs-test-selenium is lacking a couple of dependencies, comparing to the advertisement: https://hutten.knut.univention.de/mediawiki/index.php/Automatisierte_UMC_Tests#Ausf.C3.BChrung_von_Selenium-Tests

root@master10:~# univention-install ucs-test-selenium

root@master10:~# /usr/share/ucs-test/86_selenium/10_product_test_password_change -f
/usr/share/ucs-test/selenium: 3: /usr/share/ucs-test/selenium: /usr/bin/xvfb-run: not found
root@master10:~# univention-install xvfb

root@master10:~# /usr/share/ucs-test/86_selenium/10_product_test_password_change -f
Traceback (most recent call last):
  File "10_product_test_password_change", line 16, in <module>
    from selenium import webdriver
ImportError: No module named selenium
root@master10:~# univention-install python-selenium

root@master10:~# /usr/share/ucs-test/86_selenium/10_product_test_password_change -f
Cleanup after exception: <class 'selenium.common.exceptions.WebDriverException'> Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

root@master10:~# which chromedriver 

-> Brick wall.
Comment 1 Arvid Requate univentionstaff 2018-02-27 12:40:59 CET
I had to manually edit the flase static path in

 /usr/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py +61
Comment 2 univention 2018-03-02 17:41:14 CET
The problem is that we need a specific version of python-selenium which is only installable via pip.
There is ". utils.sh; install_selenium".