-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Endless waiting of XHR requests (Auto Waiter?) #569
Comments
All the waiting for the UI5 application is done inside the Can @hmanchev provide some insides? |
We could probably add an optional browser.asControl({
autoWait: false, // optional property - default: true
selector: {
// wdi5 selector...
}
}) Further analysis what needs to be changed has to be done. |
Siolto's idea seems reasonable for me. |
After further analyzing this issue we came to the conclusion that we don't want to add the possibility to disable the Instead we came up with the idea to give the possibility to exclude/ignore certain calls from the @hmanchev would it be possible for your team to add a feature to the |
I would like to invite @jdichev in this discussion as he can comment from OPA side. |
@hmanchev @jdichev @mehmet-sap, we drafted a first potential PR for that in wdi5. We see our approach currently only as a workaround till you could add this feature directly to the autowaiter and we could pass the information via the options object. |
hopefully resolved with |
Describe the bug
WDI5 is indirectly testing a UI5 app that is continuesly sending XHR requests for updating a current status. This behavior is causing WDI5 to wait forever until the requests are resolved. In our case this will not be resolved so we cannot continue with testing an app. The test is running into a timeout.
Our workaround is to directly accessing the element via the id of for example a button.
To Reproduce
Please contact me and I will show you that behavior in our application in a meeting.
Expected behavior
I expect to access all elements in the app via wdi5 selector. Currently no elements could be accessed only if we use the following accessor: $().
Logs/Console Output
[0-0] [wdi5] call of _getControl() failed because of: Error: Polling stopped because the timeout of 60000 milliseconds has been reached but there is still pending asynchronous work.
[0-0] This is the last log of pending work:
[0-0] There are 1 open XHRs and 0 open FakeXHRs.
[0-0] XHR: URL: '/sap/opu/odata/sap/APS_EXT_ATO_IMP_SRV/$batch?sap-client=200' Method: 'POST' Async: 'true'
[0-0] Stack: at Object.e [as resolveStackTrace] (/resources/sap/ui/test/autowaiter/_utils.js?eval:6:117)
[0-0] at XMLHttpRequest.d (/resources/sap/ui/test/autowaiter/_XHRWaiter.js?eval:6:1318)
[0-0] at XMLHttpRequest.send (/resources/sap/ui/test/autowaiter/_XHRWaiter.js?eval:6:971)
[0-0] at Object.request (/resources/sap/ushell_abap/bootstrap/evo/abap.js:482:20511)
[0-0] at Sr (/resources/sap/ushell_abap/bootstrap/evo/abap.js:482:12217)
[0-0] at n.request (/resources/sap/ushell_abap/bootstrap/evo/abap.js:482:65316)
[0-0] at z._request (/resources/sap/ushell_abap/bootstrap/evo/core-ext-light-2.js:271:71732)
[0-0] at g (/resources/sap/ushell_abap/bootstrap/evo/core-ext-light-2.js:271:30467)
[0-0] at /resources/sap/ushell_abap/bootstrap/evo/core-ext-light-2.js:271:29893
[0-0] at e (/resources/sap/ui/test/autowaiter/_promiseWaiter.js?eval:6:2396) - sap.ui.test.autowaiter._XHRWaiter#hasPending
Runtime Env (please complete the following information):
wdi5/wdio-ui5-service
-version: 1.5.6UI5
version: 1.121.0wdio
-version (output ofwdio --version
): 7.27.0node
-version (output ofnode --version
): v18.17.1Additional context
It would be very helpful to have an option to deactivate the auto wait feature.
The text was updated successfully, but these errors were encountered: