Fiori Tools Part 3: Mock Data, Preview Variants and Working Without a Back End
Preview · a free account unlocks the full lesson
Develop and test Fiori apps even when the back end isn't ready: the Fiori elements mock server middleware, generated or hand-crafted mock data, preview with different configurations, and keeping mock and real metadata in sync.
Visual overview
Explanation
Parts 1 and 2 built and configured apps; Part 3 makes development independent of back-end availability, using mock data.
Back-end services are often unfinished or unstable during UI development, and test systems may simply lack data. A mock server lets UI developers work, demo and test in parallel with back-end development, and it makes automated UI tests deterministic since the data doesn't shift under them.
For Fiori elements and OData V4 projects, the mock server middleware built into the UI5 tooling serves requests from a local metadata file plus JSON data per entity set, and it supports filtering, sorting, paging and draft flows to a large extent. Its configuration lives in a ui5-mock.yaml file, and preview configurations can run the app against mocks, the real service, or different settings as needed.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
More lessons in this topic
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.