courrier

    2.0.4 • Public • Published

    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'))
    ;

    Install

    npm i courrier

    DownloadsWeekly Downloads

    0

    Version

    2.0.4

    License

    Apache-2.0

    Last publish

    Collaborators

    • wcandillon