courrier

Postman runner that can run requests in parallel

Usage no npm install needed!

<script type="module">
  import courrier from 'https://cdn.skypack.dev/courrier';
</script>

README

Courrier

Postman/Newman runner that runs requests in parallel.

Circle CI NPM version

Usage

const courrier = require('courrier');

const options = {
    envJson: {
        id:'7a04c166-1f65-509b-0d3d-7463182e17c9',
        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'))
;