Academy · BTP & Extensions · 300 Professional
Testing CAP and BTP Extensions
Builds a test strategy and working practice for side-by-side extensions on SAP BTP: automated CAP service tests with cds.test, mocked remote services, contract tests against consumed SAP S/4HANA APIs and events, SAPUI5 and SAP Fiori elements UI tests with QUnit and OPA5, end-to-end tests across SAP BTP and SAP S/4HANA, and the pipeline gates and evidence that support a release sign-off. Uses Contoso Motor Co.'s fleet order status app throughout.
- 55 minutes
- 6 lessons + quiz
- BTP & Extension Developer, Test Automation Engineer, Test Lead / Test Manager
What you’ll be able to do
- Write automated CAP service tests with cds.test
- Mock remote services for fast, isolated tests
- Create contract tests for consumed APIs and events
- Test SAPUI5 and SAP Fiori elements UIs with QUnit and OPA5
- Plan end-to-end tests across SAP BTP and SAP S/4HANA
- Define pipeline quality gates and release evidence for sign-off
Sources and further reading
- Testing with cds.test (CAP documentation) · SAP (capire)
- Inner-Loop Development: mocking remote services (CAP documentation) · SAP (capire)
- Consuming Services (CAP documentation) · SAP (capire)
- Testing (SAPUI5 documentation) · SAP Help Portal source (SAP-docs)
- Integration Testing with One Page Acceptance Tests (OPA5) · SAP Help Portal source (SAP-docs)
- Writing OPA Tests for SAP Fiori Elements Applications · SAP Help Portal source (SAP-docs)
- Learning Journey: Building Side-by-Side Extensions on SAP BTP · SAP Learning