SAP/ui5-uiveri5

App with UI5 version 1.120.4 cannot be opened by uiveri5 in pipeline

Closed this issue · 1 comments

Our apps with UI5 version 1.120.4 cannot be opened by uiveri5 in pipeline.
But locally the test works with latest chrome version or Firefox.

In Pipeline, we have to use "selenium/standalone-chrome:107.0" as sidecar image due to unknown Webdriver version error.

In the test report, screenshots show that the target page cannot be load:
image

Pipeline logs:

[2024-02-05T18:57:02.609Z] info  uiVeri5ExecuteTests - running command: npm install @ui5/uiveri5 --global --quiet
[2024-02-05T18:57:10.750Z] warn  uiVeri5ExecuteTests - npm WARN deprecated har-validator@5.1.5: this library is no longer supported
[2024-02-05T18:57:10.750Z] warn  uiVeri5ExecuteTests - npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
[2024-02-05T18:57:11.012Z] warn  uiVeri5ExecuteTests - npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
[2024-02-05T18:57:11.012Z] warn  uiVeri5ExecuteTests - npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[2024-02-05T18:57:11.012Z] warn  uiVeri5ExecuteTests - npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[2024-02-05T18:57:11.012Z] warn  uiVeri5ExecuteTests - npm WARN deprecated superagent@3.8.3: Please upgrade to v7.0.2+ of superagent.  We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing.  See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
[2024-02-05T18:57:11.012Z] warn  uiVeri5ExecuteTests - npm WARN deprecated protractor@5.3.2: We have news to share - Protractor is deprecated and will reach end-of-life by Summer 2023. To learn more and find out about other options please refer to this post on the Angular blog. Thank you for using and contributing to Protractor. https://goo.gle/state-of-e2e-in-angular
[2024-02-05T18:57:11.273Z] info  uiVeri5ExecuteTests - 
[2024-02-05T18:57:11.273Z] info  uiVeri5ExecuteTests - added 189 packages in 8s
[2024-02-05T18:57:11.273Z] info  uiVeri5ExecuteTests - 
[2024-02-05T18:57:11.273Z] info  uiVeri5ExecuteTests - 6 packages are looking for funding
[2024-02-05T18:57:11.273Z] info  uiVeri5ExecuteTests -   run `npm fund` for details
[2024-02-05T18:57:11.273Z] info  uiVeri5ExecuteTests - running command: /home/node/.npm-global/bin/uiveri5 --seleniumAddress=http://localhost:4444/wd/hub --params.user=******** --params.pass=******** systemtest/uiveri5/Scenarios/listReportSearchScenario/conf.js --specs=systemtest/uiveri5/Scenarios/listReportSearchScenario/*.spec.js
[2024-02-05T18:57:11.274Z] info  uiVeri5ExecuteTests - INFO: @ui5/uiveri5 v1.47.10
[2024-02-05T18:57:11.274Z] info  uiVeri5ExecuteTests - INFO: specs defined in both *.conf.js and --specs CLI argument, using --specs argument.
[2024-02-05T18:57:11.534Z] info  uiVeri5ExecuteTests - INFO: Resolving specs
[2024-02-05T18:57:11.534Z] info  uiVeri5ExecuteTests - INFO: Executing 1 specs
[2024-02-05T18:57:11.534Z] info  uiVeri5ExecuteTests - [18:57:11] I/launcher - Running 1 instances of WebDriver
[2024-02-05T18:57:11.534Z] info  uiVeri5ExecuteTests - INFO: Opening webdriver connection with capabilities: {"browserName":"chrome","platform":"LINUX","chromeOptions":{"args":["--headless","--no-sandbox","--disable-dev-shm-usage","--disable-gpu","--disable-infobars"]},"seleniumOptions":{"args":["-debug","-log","selenium.log"]},"loggingPrefs":{"browser":"DEBUG"},"count":1}
[2024-02-05T18:57:12.476Z] info  uiVeri5ExecuteTests - INFO: Suite started: listReportSearch_scenario_tests
[2024-02-05T18:57:12.476Z] info  uiVeri5ExecuteTests - INFO: Spec started: 1. Navigate from shell to Process Issue app
[2024-02-05T18:57:12.476Z] info  uiVeri5ExecuteTests - INFO: Opening: https://xy-flp.internal.cfapps.sap.hana.ondemand.com/cp.portal/site
[2024-02-05T18:57:20.607Z] info  uiVeri5ExecuteTests - INFO: UI5 Version: 1.120.4
[2024-02-05T18:57:20.607Z] info  uiVeri5ExecuteTests - INFO: UI5 Timestamp: 202401040604
[2024-02-05T18:57:59.345Z] info  uiVeri5ExecuteTests - INFO: Expectation FAILED: Expected 'Process Issues' to be 'TEST'.

Could this issue be related to chrome version used?
Is there any possibility to get more debug logs from the browser used in test?

Closing ticket, the error was caused by unsupported JS method in old browser version.