SAP/karma-ui5

Unable to run multiple test cases in Jenkins pipeline

umangk12 opened this issue · 4 comments

Hi Team,

Multiple OPA5 test cases do not run while using karma on our Jenkins pipeline. We get multiple errors which is never consistent. In some cases it looks like the issue is with the test cases but when running the test cases in local it runs fine. We are using "WebDriver" Configuration to run it on pipeline but for local we use Chrome.

Thanks,
Umang
logs_multiple.txt
logs_single_journey.txt

I'm sorry, but just from looking at the provided log files there's nothing we can do here.
If it only works locally, there must be something different on the Jenkins pipeline setup or the "WebDriver" plugin that causes this issue. With WebDriver many things can be different in the CI environment like OS, networking, ...
Please try chrome headless instead.

Hi Team,

As suggested tried with HeadlessChrome configuration also . But its still not working. Please find CI logs and karma configuration used.

Regards,
Umang
karma_logs_headless_chrome.txt
karma.conf.ci.js.txt

From your logs:

14:59:47 error - �[91m23 06 2022 09:29:47.619:ERROR [launcher]: �[39mChromeHeadless stdout:
14:59:47 error - �[91m23 06 2022 09:29:47.619:ERROR [launcher]: �[39mChromeHeadless stderr: [...]/linux-756035/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

I don't think this is an issue with karma-ui5, but rather with the environment you try to start chrome in.

Hi Team,

Can you please help us with the issue or redirect us to a team who can help ?

Regards,
Umang