on 2022 Aug 23 8:30 AM
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?
Have you tried @sap-ux/ui5-middleware-fe-mockserver?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
57 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.