Univention Bugzilla – Bug 44640
Add tests for the umc using selenium
Last modified: 2019-02-28 16:14:42 CET
To test the umc-gui there should be automatic tests.
Also automate the taking of screenshots for the manuals.
Some existing code for the selenium-tests have been merged to ucs-4.2/ucs-4.2-x/test/ucs-test/univention/testing/umc_selenium.py .
I've also written some first screenshot-taking tests, which are located at ucs-4.2/ucs-4.2-x/test/ucs-test/tests/90_umc-screenshots/ . They seem to work quite reliably, but it takes quite some manual tweaking to get some tests running properly. Also some screenshots are not producible and some are very laborious to create and probably not future-proof with selenium.
There is also the script ucs-4.2/ucs-4.2-x/test/ucs-test/tests/90_umc-screenshots/change_names_and_add_shadows.sh, which changes the name of all images needed for the manual and adds shadows to some of the images.
I've now also covered a first product test with selenium. It can be found under test/ucs-test/tests/86_umc/10_product_test_password_change .
ucs-test r82376 added a ucs-test-selenium package with a dependency to python-selenium. As ucs-test depends on all test module and python-selenium is not available in UCS 4.2-1, the installation of ucs-test fails and so our daily jenkins tests.
Please either make python-selenium available or remove ucs-test-selenium.
Should be fixed with:
r82499 | Bug #44640: ucs-test-selenium doesn't provide ucs-test-module anymore
The basis is working and running every day in Jenkins now.