/download_odata_mock

Automatically download mockdata via script

Primary LanguageJavaScript

Automatically download mockdata via script

Introduction

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.

How to install the script:

  1. download and install npm
  2. in this directory execute npm install

How to run the download:

in this directory execute grunt

How to configure the script:

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.