Univention Bugzilla – Bug 52953
fix failing selenium tests
Last modified: 2021-05-25 16:03:05 CEST
The Appcenter-Test in selenium is currently failing because of changes in the design
Also through importing the icons the tests 130_miscellaneous 131_miscellaneous_module_availability 12_product_test_ucr are failing
Your current changes: ucs-test (10.0.4-44) 0103c9afd21a | Bug #52953: fixed changelog entries 4f9c00d08e79 | Bug #52953: fixed click_tile in selenium interactions ucs-test (10.0.4-43) 7faade6f7f31 | Bug #52953: fixed the failing selenium tests ucs-test (10.0.4-36) 48e08cb50866 | Bug #52953: changed install and uninstall method of selenium to match new layout
Created attachment 10669 [details] Screenshot The test case 137appcenter still fails: INFO:univention.testing.selenium.interactions:Clicking the tile 'App Center' INFO:univention.testing.selenium.checks_and_waits:Waiting for text: 'Do not show this message again' INFO:univention.testing.selenium.interactions:Clicking the button 'Continue' INFO:univention.testing.selenium.checks_and_waits:Waiting for all standby animations to disappear. INFO:univention.testing.selenium.checks_and_waits:Waiting for standby animation to appear. INFO:univention.testing.selenium.checks_and_waits:No standby animation appeared during timeout. Ignoring INFO:univention.testing.selenium.checks_and_waits:Waiting for all standby animations to disappear. INFO:univention.testing.selenium.checks_and_waits:Waiting for text: 'More information' INFO:univention.testing.selenium.checks_and_waits:Waiting for all standby animations to disappear. INFO:univention.testing.selenium.interactions:Clicking the button 'Install' INFO:univention.testing.selenium.checks_and_waits:Waiting for text: 'In order to proceed with the installation' INFO:univention.testing.selenium.checks_and_waits:Waiting for all standby animations to disappear. INFO:univention.testing.selenium.checks_and_waits:Waiting until any of those texts is visible: ['Accept license', 'Next', 'Continue anyway', 'Install app', 'Install anyway', 'Start installation'] INFO:univention.testing.selenium.checks_and_waits:Waiting until any of those texts is visible: ['Installing', 'Installiere'] ERROR:univention.testing.selenium.base:Exception: <class 'selenium.common.exceptions.TimeoutException'> Message: waited 60 seconds for texts ['Installing', 'Installiere']
ucs-test (10.0.4-51) d4c5a1e517b4 | Bug #52953: increased timeout for install_app in selenium appcenter ucs-test (10.0.4-50) ee2678e0a91d | Bug #52953: fixed get available modules for selenium test 132 ucs-test (10.0.4-47) 2650fe5e3632 | Bug #52953: fixed xpath for 17_self_service_registration ucs-test (10.0.4-45) 9455413965eb | Bug #52953: increased timeout for appcenter app install and simplified add user wait call in udm ucs-test (10.0.4-44) 0103c9afd21a | Bug #52953: fixed changelog entries 4f9c00d08e79 | Bug #52953: fixed click_tile in selenium interactions ucs-test (10.0.4-43) 7faade6f7f31 | Bug #52953: fixed the failing selenium tests ucs-test (10.0.4-36) 48e08cb50866 | Bug #52953: changed install and uninstall method of selenium to match new layout
OK: Code review OK: Tests passing in Jenkins no changelog entry required.
During QA I didn't see git:37709a6e561efb78f2a0d9ba514fdd1b67caf3f8 and git:d95c6c8675623e2d6a91be5e3fa7e63c322e6a53 as they were committed with the wrong bug number. REOPEN: There is no timeout anymore when clicking buttons during App uninstallation - which delays uninstallation by 5 minutes if one of the mutual exclusive buttons don't exists. PEP8 issue: test/ucs-test/univention/testing/selenium/appcenter.py|36 col 1 error| 'selenium.common.exceptions.NoSuchElementException' imported but unused [F401]
ucs-test (10.0.5-8) 29b247a1e8e7 | Bug #52953: added timeout to click_button call and click_buttons method ucs-test (10.0.5-10) f3b3702dc60e | Bug #52953: increase timeout for wait_for_text in install_app ucs-test (10.0.4-56) 7a93e9f2710d | Bug #52953: fixed xpath for selenium test 180_portal_entries ucs-test (10.0.4-55) f01527e86bd8 | Bug #52953: reduced timeout for install_app ucs-test (10.0.4-54) 8bfa2e3ac8f2 | Bug #52953: fixed clicking logout button for selenium test 130_miscellaneous ucs-test (10.0.4-51) d4c5a1e517b4 | Bug #52953: increased timeout for install_app in selenium appcenter ucs-test (10.0.4-50) ee2678e0a91d | Bug #52953: fixed get available modules for selenium test 132 ucs-test (10.0.4-47) 2650fe5e3632 | Bug #52953: fixed xpath for 17_self_service_registration ucs-test (10.0.4-45) 9455413965eb | Bug #52953: increased timeout for appcenter app install and simplified add user wait call in udm ucs-test (10.0.4-44) 0103c9afd21a | Bug #52953: fixed changelog entries 4f9c00d08e79 | Bug #52953: fixed click_tile in selenium interactions ucs-test (10.0.4-43) 7faade6f7f31 | Bug #52953: fixed the failing selenium tests ucs-test (10.0.4-36) 48e08cb50866 | Bug #52953: changed install and uninstall method of selenium to match new layout
OK so far. no changelog required.
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".