-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE - generateMockData doesn't generate navigationProperty data automatically #810
Comments
Hello @TornadoM from what I see here your navigation property doesn't come with any referential constraints, as such we cannot really invent a relationship here. |
Hi Lunet, Thanks a lot for the reply. I will generate a mock dataset json file for such navigation property call by myself. But how shall I name it correctly? If I want to define mockdata for BusinessPartners Entity, I just generate file "BusinessPartners.json". But for such navigation property call BusinessPartners(ID='ID_0',XXX='dummy')/ProductOrders , how should I name the json file to make the call reach the mock dataset in the file? Thanks a lot! BTW, another question. Is that possible that I run a local backend server and I trigger some actions in UI from the test journey, and the mockdata files can be automatically recorded and written into the mockdata folder? Is mockserver or any other sap middleware able to handle this? Thanks a lot! Best Regards |
Hello @TornadoM we have no support for local backend proxy to save data as you go :) The data for the navigationProperty can be provided with the name of the target entityset or type as json. You then have to ensure that you have a way to access those data, either through a defined referential constraint, or by matching key property names from parent to child. You can also provide |
Entity defined like:
Metadata like:
In UI, after filter on the parent entity and go to the object page, it will call the request like below, but it's empty:
http://localhost:808/v2/service-name/BusinessPartners(ID='ID_0',XXX='dummy')/ProductOrders
Could you please enable the automatic data generation for such navigation properties? Can we expect this in the near future?
Thanks.
The text was updated successfully, but these errors were encountered: