Univention Bugzilla – Bug 44640
Add tests for the umc using selenium
Last modified: 2021-11-22 16:37:07 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. See http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-1/job/AutotestJoin/ Please either make python-selenium available or remove ucs-test-selenium.
Should be fixed with: ucs-test (7.0.23-34): r82499 | Bug #44640: ucs-test-selenium doesn't provide ucs-test-module anymore
https://hutten.knut.univention.de/mediawiki/index.php/Automatisierte_UMC_Tests
The basis is working and running every day in Jenkins now.
[5.0-0] 92fe2db24e doc[ucs-test] Use of Selenium test/ucs-test/README.md | 19 +++++++++++++++++-- test/ucs-test/univention/testing/selenium/base.py | 4 ++-- test/ucs-test/univention/testing/selenium/interactions.py | 5 +++-- test/ucs-test/univention/testing/selenium/suppress_notifications.js | 2 +- 4 files changed, 23 insertions(+), 7 deletions(-)