Show TOC

Mock ServerLocate this document in the navigation structure

Introduces how mock server is used to simulate OData backend calls

Mock server is a mocking framework for HTTP and HTTPS that is used to simplify integration testing and to decouple development teams by allowing to develop against a service that is not complete or unstable.

In SAPUI5, the mock server mimics OData backend calls. It simulates the OData provider and is completely client-based, meaning that no network connectivity to a remote host is required. It intercepts HTTP calls made to the server and provides a fake output to the client. All this is transparent to data binding and use of OData model and feels like a real server. No changes are required on the OData model.

The mock server provides mock services and also mock data. It supports randomly generated data based on the service metadata, as well as mock data provided in JSON files.