on 2023 Jan 05 3:35 PM
Hi Colleagues,
I have a SAPUI5 project and the opa5 tests are running in VSCode, in my local environment, but when in Bussines Application Studio - BAS the following error is displayed:
How can I solve this issue?
Cannot start Chrome
/home/user/projects/rb-dare-sales-app/.cache/puppeteer/chrome/linux-1069273/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
###################################
karma.config
process.env.CHROME_BIN = require("puppeteer").executablePath();<br>module.exports = function (config) {<br> config.set({<br> frameworks: ["ui5"],<br> browsers: ["Chrome"],<br> logLevel: config.LOG_ERROR,<br> browserConsoleLogOptions: {<br> level: "error",<br> },<br> ui5: {<br> type: "library",<br> paths: {<br> src: "packages",<br> test: "test"<br> },<br> configPath: "ui5-karma.yaml",<br> mode: "html",<br> testpage: "test/testsuite.qunit.html"<br> },<br> proxies: {<br> "/resources": {<br> target: "https://ui5.sap.com/1.71.30/resources",<br> changeOrigin: true<br> }<br> },<br> proxyValidateSSL: false,<br> client: {<br> args: ["--BTQ", config.BTQ]<br> }<br> });<br>};
###################################
ui5-karma.yaml
specVersion: '2.3'<br>metadata:<br> name: sap-ric-dare<br>type: application<br>resources:<br> configuration:<br> paths:<br> webapp: ./<br>server:<br> customMiddleware:<br> - name: ric-middleware-less<br> beforeMiddleware: serveResources
---# Custom middleware extension definitionspecVersion: "2.3"kind: extensiontype: server-middlewaremetadata: name: ric-middleware-lessmiddleware: path: tools/serverMiddleware/ric-middleware-less.js
###################################
###################################
package.json
...<br>"devDependencies": {<br> "@sap/ux-ui5-tooling": "^1.8.3",<br> "@ui5/logger": "^2.0.1",<br> "axios": "^0.22.0",<br> "cross-env": "^7.0.3",<br> "eslint": "^7.32.0",<br> "http-proxy-middleware": "^2.0.1",<br> "husky": "^7.0.2",<br> "karma": "^6.4.1",<br> "karma-chrome-launcher": "^3.1.1",<br> "karma-coverage": "^2.0.3",<br> "karma-ui5": "^2.4.0",<br> "lerna": "^4.0.0",<br> "less-middleware": "^3.1.0",<br> "puppeteer": "^19.3.0",<br> "run-script-os": "^1.1.6",<br> "shx": "^0.3.3",<br> "simple-git": "^2.46.0",<br> "ui5-middleware-livecompileless": "^0.2.1",<br> "ui5-middleware-livereload": "^0.5.5",<br> "ui5-middleware-simpleproxy": "^0.7.3"<br> },<br>...
###################################
Yarn version: 1.22.19<br>Node version: v14.17.1<br>NPM version: npm -v 6.14.13
###################################
Request clarification before answering.
Hi,
It is still not possible to run Chromium based browsers on BAS. But you can use this extension originaly intended for WDI5 tests to run Firefox.
Thanks,
Ido
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
We are aware of this issue. Currently BAS doesn't support running Chrome which is a requirement for several UI testing frameworks. Hopefully we will be able to update on this topic soon.
Best regards,
Ido
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.