Compare commits

...

2 Commits

Author SHA1 Message Date
Simon Priet
e2e877736a Merge branch 'main' of https://git.blanchelune.i234.me/Lifen/lifen-postman 2021-09-08 14:15:36 +02:00
Simon Priet
a919789c6f docs: 📝 Prepare readme.md to merger request 2021-09-08 14:15:33 +02:00

View File

@ -1,8 +1,22 @@
# About lifen-postman # About lifen-postman
This repository holds some PostMan files that performs tests against Lifen's Fhir API. They represent my handout regardinf the technical test. This repository holds some PostMan files that performs tests against Lifen's Fhir API. They represent my handout regardinf the technical test. There is also a Node programm that run `NewMan`.
## Installation and execution ## Installation and execution via CLI
NodeJs 16+ is required.
1. Clone this repository on your local computer
2. Open your favorite IDE, VSC or a terminal
2. Purge the `node_modules` folder (`rm -rf ./node_module/*`)
3. Install `NewMan` via npm with the command `npm install`. It will lookup eveything based on the `package.json` file.
4. Run newman via the npx command `npx newman run .\lifen-api.postman_collection.json -e '.\fhir-api public post-prod.postman_environment.json'`
### An example of NewMan's test report
![An example of NewMan's test report](./public/newman-testresult-example.jpg)
## Installation and execution in the PostMan GUI
PostMan is required to run them. PostMan is required to run them.
@ -20,7 +34,7 @@ PostMan is required to run them.
* The request `GET CommunicationRequest` wait 10 sec before being launched, because Irène may not have processed the CommunicationRequest that early. * The request `GET CommunicationRequest` wait 10 sec before being launched, because Irène may not have processed the CommunicationRequest that early.
* There is no need to save the cookies, as there will be no cookies baked here 🚫🍪😔 * There is no need to save the cookies, as there will be no cookies baked here 🚫🍪😔
## an Example of Test Report in PostMan ### an Example of Test Report in PostMan
![an Example of Test Report](./public/run-result-example.jpg) ![an Example of Test Report](./public/run-result-example.jpg)