cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

I searched all the web and github and there no samples how to approach automated testing for either CF MTAS app or CDS apps.
No documentation. No sample Code. Any ideas. I have been searching for 3 months now.

0 Likes
View Entire Topic
gregorw
SAP Mentor
SAP Mentor

Dear Salbador,

I would suggest that you first get a clear picture what tests you want to execute:

  • Unit Tests
  • System Tests
  • Integration Tests
  • UI Tests

When you follow the suggestion from Marius and use CAP for your development you can quite easy achieve Unit and System Tests including tests of the authorisations by running local tests with Mocked Authentication.

For a full blow Integration Test of the deployed MTA on SAP CP Cloud Foundry you should follow SAP Cloud Platform Backend service: Tutorial [13]: API: called: from: external: tool.

Regarding UI Tests I would suggest to do them also local as otherwise you always run into the authentication issues.

And the Theia editor David and Thomas are using is the SAP Business Application Studio. And it's available in the trial account. I suggest you check out the tutorial Set Up SAP Business Application Studio for Development again. But I would recommend to go for local development with VS Code as it's way faster and you have more control.

Best regards
Gregor