diff --git a/readme.md b/readme.md index 1e6c23d..187dec5 100644 --- a/readme.md +++ b/readme.md @@ -6,6 +6,10 @@ This repository is meant to serve as example for how testing works within UI5. I ![](readme_src/Preview.png) +### Testing Pyramid + +![](readme_src/TestingPyramid.png) + # Getting Started You can just clone this repository, run npm install and use the [UI5 tooling](https://github.com/SAP/ui5-tooling) to locally serve the application in order to debug/learn from it. @@ -39,10 +43,54 @@ The paths within this project are - as usual - prefixed by the `projectId` ( whi Implemented = :white_check_mark: +# Additional Information + +## OData-Service 'settings' + +When declaring the OData-Service as our model, we have added the parameter `metadataUrlParams` like so: + +```json +"sap.app": { + [...] + "dataSources": { + "mainService": { + "uri": "/here/goes/your/serviceUrl/", + "type": "OData", + "settings": { + "odataVersion": "2.0", + "localUri": "localService/metadata.xml" + } + } + } + }, +[...] +"models": { + "": { + "dataSource": "mainService", + "settings": { + "metadataUrlParams": { + "sap-documentation": "heading" + } + } + } + } +``` + +This results in a GET-Request that looks like the following: + +``` +http://localhost:8080/here/goes/your/serviceUrl/$metadata?sap-documentation=heading&sap-language=EN +``` + # Credits For more information check: * [UI5 Documentation](https://sapui5.hana.ondemand.com/#/topic/291c9121e6044ab381e0b51716f97f52) * [Getting Started](https://sapui5.hana.ondemand.com/#/topic/8b49fc198bf04b2d9800fc37fecbb218.html) -* [Each Step as Download](https://sapui5.hana.ondemand.com/#/entity/sap.m.tutorial.testing) \ No newline at end of file +* [Each Step as Download](https://sapui5.hana.ondemand.com/#/entity/sap.m.tutorial.testing) +* [Test Automation](https://sapui5.hana.ondemand.com/#/topic/ae448243822448d8ba04b4784f4b09a0.html#loioae448243822448d8ba04b4784f4b09a0) +* [Mock Server](https://sapui5.hana.ondemand.com/#/topic/69d3cbd4150c4ffb884e788f7f60fd93) +* [Test Recorder](https://sapui5.hana.ondemand.com/#/topic/2535ef9272064cb6bd6b44e5402d531d) +* [OPA5](https://sapui5.hana.ondemand.com/#/topic/2696ab50faad458f9b4027ec2f9b884d) +* [QUNIT](https://sapui5.hana.ondemand.com/#/topic/09d145cd86ee4f8e9d08715f1b364c51) \ No newline at end of file diff --git a/readme_src/TestingPyramid.png b/readme_src/TestingPyramid.png new file mode 100644 index 0000000..1e60d47 Binary files /dev/null and b/readme_src/TestingPyramid.png differ