Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wcandillon/courrier
Postman runner that can run requests in parallel
https://github.com/wcandillon/courrier
Last synced: 2 months ago
JSON representation
Postman runner that can run requests in parallel
- Host: GitHub
- URL: https://github.com/wcandillon/courrier
- Owner: wcandillon
- License: apache-2.0
- Created: 2016-03-23T10:26:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T12:16:26.000Z (over 7 years ago)
- Last Synced: 2024-09-14T12:19:44.852Z (3 months ago)
- Language: JavaScript
- Size: 59.6 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Courrier
Postman/Newman runner that runs requests in parallel.
[![Circle CI](https://circleci.com/gh/wcandillon/courrier/tree/master.svg?style=svg)](https://circleci.com/gh/wcandillon/courrier/tree/master) [![NPM version](http://img.shields.io/npm/v/courrier.svg?style=flat)](http://badge.fury.io/js/courrier)
## Usage
```js
const courrier = require('courrier');const options = {
envJson: {
id:'7a04c166-1f65-509b-0d3d-7463182e17c9',
sequential: true, //sequential execution
name:'CellStore',
values: [{
key: 'endpoint',
value: Config['28'].projectEndpoint,
type:'text',
enabled: true
}],
timestamp: new Date().getTime()
},
iterationCount: 1,
delay: 1,
responseHandler: 'TestResponseHandler',
requestTimeout: 300000
};
courrier.execute(JSON.parse(fs.readFileSync('/path/to/postman/collection.json', 'utf-8')), options)
.then(() => console.log('All tests passed'))
.catch(() => console.log('Some tests failed'))
;
```