Bug 47018 - 86_selenium.10_product_test_password_change fails in 4.3
86_selenium.10_product_test_password_change fails in 4.3
Status: NEW
Product: UCS Test
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Johannes Keiser
Felix Botner
:
: 47732 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-05-16 14:22 CEST by Felix Botner
Modified: 2020-04-28 17:51 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

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2018-05-16 14:22:00 CEST
Traceback (most recent call last):
[2018-05-16 08:08:09.868140]   File "10_product_test_password_change", line 283, in <module>
[2018-05-16 08:08:09.868190]     umc_tester.test_umc()
[2018-05-16 08:08:09.868212]   File "10_product_test_password_change", line 69, in test_umc
[2018-05-16 08:08:09.868233]     self.test_usability_of_a_module_after_password_change(self.admin, uts.random_string())
[2018-05-16 08:08:09.868254]   File "10_product_test_password_change", line 133, in test_usability_of_a_module_after_password_change
[2018-05-16 08:08:09.868274]     self.change_own_password(old_password, user.password)
[2018-05-16 08:08:09.868317]   File "10_product_test_password_change", line 220, in change_own_password
[2018-05-16 08:08:09.868375]     self.selenium.open_side_menu()
[2018-05-16 08:08:09.868390]   File "/usr/lib/pymodules/python2.7/univention/testing/selenium/interactions.py", line 128, in open_side_menu
[2018-05-16 08:08:09.868965]     self.click_element('//*[@class="umcMobileMenuToggleButton"]')
[2018-05-16 08:08:09.868992]   File "/usr/lib/pymodules/python2.7/univention/testing/selenium/interactions.py", line 150, in click_element
[2018-05-16 08:08:09.869038]     elems[0].click()
[2018-05-16 08:08:09.869056]   File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webelement.py", line 80, in click
[2018-05-16 08:08:09.870533]     self._execute(Command.CLICK_ELEMENT)
[2018-05-16 08:08:09.870564]   File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webelement.py", line 501, in _execute
[2018-05-16 08:08:09.871085]     return self._parent.execute(command, params)
[2018-05-16 08:08:09.871114]   File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 308, in execute
[2018-05-16 08:08:09.879312]     self.error_handler.check_response(response)
[2018-05-16 08:08:09.879339]   File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
[2018-05-16 08:08:09.880097]     raise exception_class(message, screen, stacktrace)
[2018-05-16 08:08:09.880185] selenium.common.exceptions.WebDriverException: Message: unknown error: Element <div class="umcMobileMenuToggleButton" id="umc_menu_Button_0" widgetid="umc_menu_Button_0">...</div> is not clickable at point (960, 24). Other element would receive the click: <div class="dijitDialogUnderlay _underlay" tabindex="-1" data-dojo-attach-point="node" id="umc_widgets_ConfirmDialog_0_underlay" style="width: 1185px; height: 800px;"></div>
[2018-05-16 08:08:09.880211]   (Session info: chrome=64.0.3282.119)
[2018-05-16 08:08:09.880233]   (Driver info: chromedriver=2.33 (undefined),platform=Linux 4.9.0-6-amd64 x86_64)
Comment 1 Felix Botner univentionstaff 2018-05-16 14:42:09 CEST
only on s4 master and backup

and it is another error on the backup

[2018-05-16 05:20:47.566662] Traceback (most recent call last):
[2018-05-16 05:20:47.566689]   File "10_product_test_password_change", line 283, in <module>
[2018-05-16 05:20:47.566732]     umc_tester.test_umc()
[2018-05-16 05:20:47.566755]   File "10_product_test_password_change", line 73, in test_umc
[2018-05-16 05:20:47.566776]     self.check_change_password_on_login(self.admin, uts.random_string())
[2018-05-16 05:20:47.566797]   File "10_product_test_password_change", line 161, in check_change_password_on_login
[2018-05-16 05:20:47.566817]     self.login_while_changing_password(user.username, old_password, user.password)
[2018-05-16 05:20:47.566860]   File "10_product_test_password_change", line 190, in login_while_changing_password
[2018-05-16 05:20:47.566878]     self.selenium.do_login(username, new_password)
[2018-05-16 05:20:47.566892]   File "/usr/lib/pymodules/python2.7/univention/testing/selenium/base.py", line 217, in do_login
[2018-05-16 05:20:47.567632]     _('no module available')
[2018-05-16 05:20:47.567662]   File "/usr/lib/pymodules/python2.7/univention/testing/selenium/checks_and_waits.py", line 57, in wait_for_any_text_in_list
[2018-05-16 05:20:47.575793]     self.get_all_visible_elements, 'waited %s seconds for texts %r' % (timeout, texts)
[2018-05-16 05:20:47.575820]   File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/support/wait.py", line 80, in until
[2018-05-16 05:20:47.576380]     raise TimeoutException(message, screen, stacktrace)
[2018-05-16 05:20:47.576436] selenium.common.exceptions.TimeoutException: Message: waited 60 seconds for texts ['Users', 'Devices', 'Domain', 'System', 'Software', 'Installed Applications', 'no module available']
Comment 2 Felix Botner univentionstaff 2018-05-16 18:22:42 CEST
i have no idea
@Johannes can you please have a look
Comment 3 Johannes Keiser univentionstaff 2018-06-08 19:30:36 CEST
The test was pretty stable the last builds except for a regression on s4 master and no-samba backup respectively but currently all latest builds are green.


I am writing a script to save the made screenshots for failed tests since they are only in the jenkins workspace for the latest build and it is difficult to interpret the stderr output without the screenshot.
Comment 4 Felix Botner univentionstaff 2019-06-25 17:01:53 CEST
*** Bug 47732 has been marked as a duplicate of this bug. ***
Comment 5 Felix Botner univentionstaff 2019-06-25 17:04:47 CEST
c40b0b6c437213552e36f15596475247742942bf - ucs-test
wait before changing password to fix (?)

25.06.19 16:49:12.149  MODULE      ( INFO    ) : Executing ['udm/license']
25.06.19 16:49:12.149  MAIN        ( INFO    ) : Setting locale u'en_US'
25.06.19 16:49:12.165  LDAP        ( INFO    ) : establishing new connection with retry_max=11
25.06.19 16:49:12.202  MAIN        ( PROCESS ) : LDAP bind for user u'uid=hmebnu70if,cn=testusers,cn=users,dc=w2k12,dc=test'.
25.06.19 16:49:12.202  LDAP        ( INFO    ) : bind binddn=uid=hmebnu70if,cn=testusers,cn=users,dc=w2k12,dc=test
25.06.19 16:49:12.212  MAIN        ( ERROR   ) : LDAP authentication for u'uid=hmebnu70if,cn=testusers,cn=users,dc=w2k12,dc=test' failed: {'desc': 'Invalid credentials'}
25.06.19 16:49:12.212  MAIN        ( WARN    ) : Trying to authenticate via SAML.
25.06.19 16:49:12.213  MAIN        ( ERROR   ) : SAML authentication failed.
25.06.19 16:49:12.217  LDAP        ( INFO    ) : establishing new connection with retry_max=11
25.06.19 16:49:12.231  MAIN        ( PROCESS ) : LDAP bind for user u'uid=hmebnu70if,cn=testusers,cn=users,dc=w2k12,dc=test'.
25.06.19 16:49:12.231  LDAP        ( INFO    ) : bind binddn=uid=hmebnu70if,cn=testusers,cn=users,dc=w2k12,dc=test
25.06.19 16:49:12.240  MAIN        ( ERROR   ) : LDAP authentication for u'uid=hmebnu70if,cn=testusers,cn=users,dc=w2k12,dc=test' failed: {'desc': 'Invalid credentials'}
Comment 6 Felix Botner univentionstaff 2020-04-28 17:33:03 CEST
another fail

[2020-04-28 03:21:59.998159] INFO:univention.testing.selenium.interactions:Entering 'univention' into the input-field 'password'.
[2020-04-28 03:22:00.254246] ERROR:univention.testing.selenium.base:Exception: <class 'selenium.common.exceptions.WebDriverException'> Message: element not interactable
[2020-04-28 03:22:00.254303]   (Session info: chrome=73.0.3683.75)
[2020-04-28 03:22:00.254318]   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-12-amd64 x86_64)
[2020-04-28 03:22:02.257754] INFO:univention.testing.selenium.base:Saving screenshot '/usr/share/ucs-test/86_selenium/selenium/error_en_20200428032202.png'
[2020-04-28 03:22:02.257881] INFO:univention.testing.selenium.base:Screenshot URL: https://jenkins.knut.univention.de:8181/job/UCS-4.4/job/UCS-4.4-4/job/AutotestJoin/SambaVersion=no-samba,Systemrolle=master-part-II/ws/test/selenium/selenium/error_en_20200428032202.png
[2020-04-28 03:22:02.616970] INFO:univention.testing.selenium.base:Saving browser log '/usr/share/ucs-test/86_selenium/selenium/error_en_browserlog_20200428032202.txt'
[2020-04-28 03:22:02.703132] Unsetting umc/web/startupdialog
[2020-04-28 03:22:02.703276] Unsetting umc/web/hooks/suppress_notifications
[2020-04-28 03:22:02.903762] File: /usr/share/univention-web/js/umc/hooks.json
[2020-04-28 03:22:02.978815] File: /usr/share/univention-management-console/meta.json
[2020-04-28 03:22:03.052846] Cleanup after exception: <class 'selenium.common.exceptions.WebDriverException'> Message: element not interactable
[2020-04-28 03:22:03.052897]   (Session info: chrome=73.0.3683.75)
[2020-04-28 03:22:03.052911]   (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-12-amd64 x86_64)

seem that the password input field is not yet interactable
Comment 7 Felix Botner univentionstaff 2020-04-28 17:51:16 CEST
a1502fd0283a3c82817312392ea014db0180e064 - ucs-test

try the "self.selenium.enter_input('password', old_password)" two time, lets see if this helps