May 2019
Beginner to intermediate
548 pages
12h 39m
English
The Mock Server is used to perform simple testing with dummy data, when the backend service is not yet implemented or simply not reachable. As the SAPUI5 applications are data-driven rather than completely standalone, it is crucial to have at least fake data to test their behavior. In order to implement the Mock Server functionality, several changes are necessary to the .html file.
Let's assume that the testing area is created in the project structure and the launching page, mockServer.html, is placed in the test catalog:

Then, the initial .html file must be enhanced as follows:
. . .sap.ui.getCore().attachInit(function(){ sap.ui.require([ ...Read now
Unlock full access