Mise à jour de 'README.md'

This commit is contained in:
Simon Pistache 2021-09-08 13:00:10 +00:00
parent aa9995419f
commit a06a28aecd

View File

@ -1,10 +1,10 @@
# About lifen-postman # About lifen-postman
<!-- vscode-markdown-toc --> <!-- vscode-markdown-toc -->
* 1. [Installation and execution via CLI](#InstallationandexecutionviaCLI) * [Installation and execution via CLI](#InstallationandexecutionviaCLI)
* 1.1. [An example of NewMan's test report](#AnexampleofNewManstestreport) * [An example of NewMan's test report](#AnexampleofNewManstestreport)
* 2. [Installation and execution in the PostMan GUI](#InstallationandexecutioninthePostManGUI) * [Installation and execution in the PostMan GUI](#InstallationandexecutioninthePostManGUI)
* 2.1. [an Example of Test Report in PostMan](#anExampleofTestReportinPostMan) * [an Example of Test Report in PostMan](#anExampleofTestReportinPostMan)
<!-- vscode-markdown-toc-config <!-- vscode-markdown-toc-config
numbering=true numbering=true
@ -14,7 +14,7 @@
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`. 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`.
## 1. <a name='InstallationandexecutionviaCLI'></a>Installation and execution via CLI ## 1. <a id='InstallationandexecutionviaCLI'></a>Installation and execution via CLI
NodeJs 16+ is required. NodeJs 16+ is required.
@ -24,11 +24,11 @@ NodeJs 16+ is required.
3. Install `NewMan` via npm with the command `npm install`. It will lookup eveything based on the `package.json` file. 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'` 4. Run newman via the npx command `npx newman run .\lifen-api.postman_collection.json -e '.\fhir-api public post-prod.postman_environment.json'`
### 1.1. <a name='AnexampleofNewManstestreport'></a>An example of NewMan's test report ### a. <a id='AnexampleofNewManstestreport'></a>An example of NewMan's test report
![An example of NewMan's test report](./public/newman-testresult-example.jpg) ![An example of NewMan's test report](./public/newman-testresult-example.jpg)
## 2. <a name='InstallationandexecutioninthePostManGUI'></a>Installation and execution in the PostMan GUI ## 2. <a id='InstallationandexecutioninthePostManGUI'></a>Installation and execution in the PostMan GUI
PostMan is required to run them. PostMan is required to run them.
@ -46,7 +46,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 🚫🍪😔
### 2.1. <a name='anExampleofTestReportinPostMan'></a>an Example of Test Report in PostMan ### a. <a id='anExampleofTestReportinPostMan'></a>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)