cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP UI5 mock sap/bc/ui2/start_up

DimoUzunov
Participant
0 Likes
186

Hello everyone,

I have a complex freestyle UI5 application with different dependencies. In order to test the app I need many different types of data coming from varios sources. To save immense work and test case creation I want to mock my data. I can mock all my OData requests by using the 

sap-fe-mockserver in my ui5-local.yaml.
However I must mock /sap/bc/ui2/start_up because my app has a dependency of it as well. Unfortunately that's some sort of a service that's not OData and doesn't have proper metadata. I've tried to mock it with a 
customMiddleware in the yaml but UI5 can't resolve anything that should serve a custom JSON.
 
Can anyone suggest a way to mock a service / url request for GET requests ? I can do it via a custom node server or a python one with reverse proxy but I don't want to leave the SAP UI5 framework.

In a nutshell I want to be able to GET data from http://[domain]/custom/service
 in my case : http://localhost:8081/sap/bc/ui2/start_up

For example:
DimoUzunov_0-1741184899093.png

This one gives the following error:


DimoUzunov_1-1741184927160.png

 


Thanks in advance 🙂 

Accepted Solutions (0)

Answers (0)