Bug 52953 - fix failing selenium tests
fix failing selenium tests
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: UMC
unspecified
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Jan Luttermann
Florian Best
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-03-18 17:30 CET by Jan Luttermann
Modified: 2021-05-25 16:03 CEST (History)
1 user (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
Screenshot (45.91 KB, image/png)
2021-03-30 10:32 CEST, Florian Best
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Luttermann univentionstaff 2021-03-18 17:30:52 CET
The Appcenter-Test in selenium is currently failing because of changes in the design
Comment 1 Jan Luttermann univentionstaff 2021-03-25 16:23:02 CET
Also through importing the icons the tests 
130_miscellaneous
131_miscellaneous_module_availability
12_product_test_ucr
are failing
Comment 2 Florian Best univentionstaff 2021-03-30 10:30:54 CEST
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
Comment 3 Florian Best univentionstaff 2021-03-30 10:32:37 CEST
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']
Comment 4 Jan Luttermann univentionstaff 2021-04-06 11:09:11 CEST
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
Comment 5 Florian Best univentionstaff 2021-04-21 10:09:26 CEST
OK: Code review
OK: Tests passing in Jenkins
no changelog entry required.
Comment 6 Florian Best univentionstaff 2021-04-23 16:30:14 CEST
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]
Comment 7 Jan Luttermann univentionstaff 2021-04-28 17:25:50 CEST
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
Comment 8 Florian Best univentionstaff 2021-05-12 11:52:17 CEST
OK so far.
no changelog required.
Comment 9 Florian Best univentionstaff 2021-05-25 16:03:05 CEST
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".