How do I start my tests with mock data in SAP Web IDE?

673 Views Asked by At

I have setup an app using SAP Web IDE using my own mock data setup using metadata.xml.

The dataSource in my manifest.json is set up like so...

"dataSources": {
  "NorthwindModel": {
    "uri": "/here/goes/your/serviceurl/",
    "type": "OData",
    "settings": {
      "localUri": "localService/metadata.xml"
    }
  }
}

I know it's a dummy URI, but as the app works fine, pulling in the data from my JSON file in localService/mockdata, I can't see how this is relevant.

However, the issue I have is, when putting together an integration test using OPA5, the service metadata is never loaded...

https://webidetesting1974838-adddcbbb0.dispatcher.hana.ondemand.com/here/goes/your/serviceurl/$metadata?sap-language=6N

(404 not found).

Can anyone help?

1

There are 1 best solutions below

0
Adam Harkus On

The Answer?

Run configuration in WEB IDE

I ran the test as a 'Web Application' and ticked 'Mock Data'

No additional libraries needed!