cancel
Showing results for 
Search instead for 
Did you mean: 

backend request with OPA5 for fiori element odata V4

0 Kudos
420

Do we have any sample or resouces for OPA5 testing, that can simulate backend request(like v2 we have mockserver) for fiori element odata v4?

Accepted Solutions (0)

Answers (3)

Answers (3)

gregorw
Active Contributor
0 Kudos

oh yes, I have this library, but how to simulate a request to back-end and then create some data for the response? I just want some sample code about this

0 Kudos

hi, l'm working on this too. So l wonder if you have find a solution, l have a simple slide about how to write this, but l find it still hard to do without sample.

mockserver/samples at main · ux/mockserver (tools.sap), here is a link for the v4 mockserver, but I still think is not enough to support the complex logic functions and data communication, it's more like the very basic acknowledge. So the best way I think is to search the key words in git for some source code, and try implemented by ourselves, most of our existing apps are more base on back-end, do not have that much complex logic for front-end so, pretty much OPA5 integration test is capable for that already. If possible we can have this practice together.

0 Kudos

Hi, thank you for the information, it's very helpful to me. Also it will be really nice to have more communication or practice together with you. Thx

CarolineWelsh
Advisor
Advisor
0 Kudos

SAP Fiori Tools is an extension pack that simplifies the development of SAP Fiori element applications. It contains a tool called the Data Editor which will enable you to generate or create mock data for your back end service. This will enable you to create realistic mock data. You can then preview your application using the realistic mock data you have created.

0 Kudos

Thx for your information, for mock data I already have and indeed data editor is brilliant, but what I want is to simulate an API call, request and response, cause in v2 we can have mockserver.js to support it, but in v4 I did not find anything related to it, or I don't know how to format code for a mock server, just here for some sample code, fresh man in SAP.