@@ -6,13 +6,18 @@ Launch a Postman collection of requests to test your API using [newman](https://
## How to use it
1. Add a Postman collection to your project
1. Add a Postman collection to your project and a globals file to use your variables
2. Add the corresponding URL to your `.gitlab-ci.yml` file (see [Getting
started](/use-the-hub)). Example:
```yaml
include:
-remote:'https://jobs.r2devops.io/newman.yml'
newman:
services:
-name:$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
alias:app
```
3. If you need to customize the job (stage, variables, ...) 👉 check the [jobs
customization](/use-the-hub/#jobs-customization)
@@ -31,3 +36,5 @@ Launch a Postman collection of requests to test your API using [newman](https://
| Name | Description | Default |
| ---- | ----------- | ------- |
| `NEWMAN_COLLECTION`<imgwidth=100/> | Name of the Postman collection <imgwidth=175/> | `postman_collection.json`<imgwidth=100/> |
| `NEWMAN_GLOBALS_FILE` | Name of the Postman globals file for [variables](https://learning.postman.com/docs/sending-requests/variables/) | ` ` |
| `NEWMAN_ADDITIONAL_OPTIONS` | Other [options](https://learning.postman.com/docs/running-collections/using-newman-cli/command-line-integration-with-newman/) you may want to use with Newman | ` ` |