Skip to content
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

Create Automated System Tests for SAP Cloud Application Programming Model Projects #29

Open
softproviding-brodmd opened this issue Dec 7, 2023 · 0 comments

Comments

@softproviding-brodmd
Copy link

softproviding-brodmd commented Dec 7, 2023

Tutorials: https://developers.sap.com/tutorials/cicd-wdi5-cap.html

There are certain issues with the tutorial, that are maybe worth updating:

Step1. 10: command
npm init wdi5@latest -- --configPath ./app/admin-books/webapp/test/wdi5/ --specs ./**/wdi5/specs/**.js --baseUrl http://localhost:4004/fiori-apps.html\#Books-manage

I get the following error message, I guess something to do with the --specs config, maybe also a wdi5 issue. This was really a bit cumbersome to get around.

≡> copying sample test files into "./app/admin-books/webapp/test/wdi5/specs/bookshop.test.js/"...
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: ENOTDIR: not a directory, copyfile '~/.npm/_npx/231bb01d21fe6f98/node_modules/create-wdi5/dist/../templates/test/sample.test.js' -> ‘~/repositories/cap-bookshop-wdi5/app/admin-books/webapp/test/wdi5/specs/bookshop.test.js/sample.test.js'] {
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'copyfile',
  path: '~/.npm/_npx/231bb01d21fe6f98/node_modules/create-wdi5/dist/../templates/test/sample.test.js',
  dest: '~/repositories/cap-bookshop-wdi5/app/admin-books/webapp/test/wdi5/specs/bookshop.test.js/sample.test.js'
}

Node.js v18.19.0

Step1. 12: command
npm run install --save-dev wdio-timeline-reporter
should probably be:
npm install --save-dev wdio-timeline-reporter

Step8. 8: maybe some explanation about the application name in the mta file would be helpfull. Mabye also a manifest.yml file would be great. Also when an application name is entered in the ci/cd pipeline there is no" -" added in our btp.
https://<Org Name>-<Space>-bookshop-srv.cfapps.us10-001.hana.ondemand.com/fiori-apps.html#Books-manage

Nevertheless, a great Tutorial, thank you very much for creating this tutorial it was super helpful :)

cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants