Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScriptTimeoutError when running uiveri5 #375

Open
EJETian opened this issue Nov 23, 2022 · 1 comment
Open

ScriptTimeoutError when running uiveri5 #375

EJETian opened this issue Nov 23, 2022 · 1 comment

Comments

@EJETian
Copy link

EJETian commented Nov 23, 2022

Hi Team,

We're facing the below timeout issue when running uiveri5 script on windows.

ScriptTimeoutError: script timeout
  (Session info: chrome=107.0.5304.107)
  (Driver info: chromedriver=107.0.5304.62 (1eec40d3a5764881c92085aaee66d25075c159aa-refs/branch-heads/5304@{#942}),platform=Windows NT 10.0.19044 x86_64)

Error stacks

ErrorStack

Other test cases are running well, but always show the timeout error. New to uiveri5, and hope to get your help on this. Thanks.

Test log of failed run

INFO: @ui5/uiveri5 v1.47.9
INFO: Resolving specs
INFO: Check for latest version of: chromedriver.exe from: https://chromedriver.storage.googleapis.com/LATEST_RELEASE
INFO: Found latest version of chromedriver.exe: 107.0.5304.62
INFO: Found correct binary locally: \AppData\Roaming\npm\node_modules\@ui5\uiveri5\selenium\chromedriver-107.0.5304.62.exe
INFO: Executing 1 specs
[10:46:33] I/launcher - Running 1 instances of WebDriver
INFO: Opening webdriver connection with capabilities: {"browserName":"chrome","platform":"WINDOWS","chromeOptions":{"args":["--no-sandbox","--disable-dev-shm-usage","--disable-gpu","disable-infobars"]},"count":1,"loggingPrefs":{"browser":"SEVERE"}}

DevTools listening on ws://127.0.0.1:62653/devtools/browser/861ca67c-a412-4a95-a798-34bd6b2bbd3c
[15756:6220:1123/104635.651:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -103
INFO: Suite started: test
INFO: Spec started: Takes a long time
INFO: Opening: https://qj5-760.wdf.sap.corp/ui?sap-client=760&sap-language=EN#AnalyticQuery-analyzeInMDA?query=2CCCNSLDTBS
[15756:6220:1123/104636.672:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -103
[15756:6220:1123/104639.552:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -103
[15756:6220:1123/104647.918:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -103
[15756:6220:1123/104655.128:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -103
[15756:6220:1123/104655.297:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -103
[15424:25372:1123/104659.239:ERROR:device_event_log_impl.cc(215)] [10:46:59.238] USB: usb_service_win.cc:415 Could not read device interface GUIDs: The system cannot find the file specified. (0x2)
[15424:25372:1123/104659.255:ERROR:device_event_log_impl.cc(215)] [10:46:59.255] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[15424:25372:1123/104659.256:ERROR:usb_descriptors.cc(141)] Failed to read length for configuration 1.
[15424:25372:1123/104659.257:ERROR:usb_descriptors.cc(100)] Failed to read all configuration descriptors. Expected 2, got 1.
[15424:25372:1123/104659.257:ERROR:device_event_log_impl.cc(215)] [10:46:59.257] USB: usb_device_win.cc:96 Failed to read descriptors from \\?\usb#vid_17ef&pid_3082#1015c4d67#{a5dcbf10-6530-11d2-901f-00c04fb951ed}.
[15424:25372:1123/104659.260:ERROR:device_event_log_impl.cc(215)] [10:46:59.260] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[15424:25372:1123/104659.263:ERROR:device_event_log_impl.cc(215)] [10:46:59.263] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[15424:25372:1123/104659.264:ERROR:device_event_log_impl.cc(215)] [10:46:59.264] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[15424:25372:1123/104659.372:ERROR:device_event_log_impl.cc(215)] [10:46:59.371] Bluetooth: bluetooth_adapter_winrt.cc:1164 RequestRadioAccessAsync failed: RadioAccessStatus::DeniedByUserWill 
not be able to change radio power.
[15756:6220:1123/104710.587:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -103
[15756:6220:1123/104712.844:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -103
[15756:6220:1123/104713.433:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -103
INFO: Expectation FAILED: Failed: script timeout
  (Session info: chrome=107.0.5304.107)
  (Driver info: chromedriver=107.0.5304.62 (1eec40d3a5764881c92085aaee66d25075c159aa-refs/branch-heads/5304@{#942}),platform=Windows NT 10.0.19044 x86_64)
INFO: Spec finished: Takes a long time with status: FAILED

Files for reference:

Thanks and regards,
Estelle

@hmanchev
Copy link
Contributor

hmanchev commented Nov 23, 2022

Hello Estelle,

Looking at the provided logs and report I can guess that there is an issue with the loading of your application. Take a look ath the log after the "INFO: Opening: ", there are a lot of errors during ssl handshake. It seems that due to this errors (or maybe some additional reasons) the page is not loaded in the configured timeout.

Please take care to resolve all the ssl handshake errors and make sure that the page is loading normally when opening it in your local browser.

I would recommend to consider migration to other E2E framework. Good alternative is wdi5: https://ui5-community.github.io/wdi5/#/

Best Regards,
Hristo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants