If you test your Fiori app using Qunit or One Page Acceptancetests (OPA5) then you must (in case of OPA5) or may (in case of Qunit) use mockdata. Mockdata comprises metadata.xml
and *.json
data files. Changes to the metadata.xml
makes it necessary to update these files in your Fiori project folder. This may happen often while the project is under development. This script automates the download of those files and edits the *.json
files so that they can be consumed by the mockserver.
- download and install npm
- in this directory execute
npm install
in this directory execute grunt
Edit the file Gruntfile.js
. The URL to the odata service must be entered directly in Gruntfile.js
(currently defined as an odata service in UXT-928 - overwrite it with your odata service URL). User and password can be entered when the script is run. If you want to further enhance the script see Grunt on how to configure tasks.