ui5-community / wdi5

official UI5 end-to-end test framework for UI5 web-apps. wdi5 = Webdriver.IO + UI5 Test API
https://ui5-community.github.io/wdi5/
Apache License 2.0
100 stars 42 forks source link

WebGL issues with WDI5 on Jenkins #614

Closed apoorvavishwanatha closed 1 month ago

apoorvavishwanatha commented 1 month ago

Hi,

We are trying to run some WDI5 tests on Jenkins in a docker container that contain test cases on a 3D Viewer (this component: https://ui5.sap.com/#/entity/sap.ui.vk.tutorial.VIT/sample/sap.ui.vk.tutorial.VIT.06)

These do not seem to run on jenkins, and it seems like the root cause is that WebGL is not enabled with the chromedriver. Is there any specific wdio configuration that we can use to force the browser to run with WebGL enabled?

These are the current flags we are using in the wdio.conf.js file under goog:chromeOptions for browserName: "chrome" args:

"--headless",
"--incognito",
"--disable-dev-shm-usage",
"--window-size=1366,768",
"--no-sandbox",
"--disable-extensions",
"--ignore-certificate-errors",
"--disable-gpu",
"--ignore-urlfetcher-cert-requests"

These are the dev dependency versions:

"devDependencies": {
        "@wdio/cli": "^8.16.0",
        "@wdio/junit-reporter": "^8.24.2",
        "@wdio/local-runner": "^8.16.0",
        "@wdio/mocha-framework": "^8.16.0",
        "@wdio/spec-reporter": "^8.16.0",
        "@wdio/utils": "^8.16.0",
        "chromedriver": "^123.0.0",
        "prettier": "^3.1.1",
        "wdio-chromedriver-service": "^8.1.0",
        "wdio-docker-service": "^3.2.1",
        "wdio-timeline-reporter": "^5.1.0",
        "wdio-ui5-service": "^2.0.0",
        "xmlhttprequest-ssl": "^2.1.1"
}
vobu commented 1 month ago

never encountered this before, but did you try to not --disable-gpu ?

apoorvavishwanatha commented 1 month ago

@vobu we did, but didn't seem to work. Even with the current configuration, it seems like WebGL was enabled at random. Are there any specific wdio configurations recommended for use with threejs/3D apis?

vobu commented 1 month ago

i never had to run tests headless on a d3/threejs app - sorry, can't help here. i'd suggest you hop over to the wdio discord channel - chances are you'll get some advice there...

apoorvavishwanatha commented 1 month ago

@vobu could you help me out with the channel link please?

vobu commented 1 month ago

https://discord.webdriver.io/