Skip to content

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

Description

@softproviding-brodmd

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions