1.0.2 • Published 3 years ago

newman-reporter-csvfeg v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Newman Reporter CSV

Add CSV reports to your Newman runs.

About

Each request in a collection run maps to a row in the outputted CSV file with the following columns:

ColumnDescriptionExample
iterationcollection run iteration number1
collectionNamename of the collectionMy fancy API
requestNamename of the request madeCreate user
methodHTTP method of the requestPOST
urlURL of the requesthttp://localhost:3000/user/create
statusresponse status of the requestOK
coderesponse code of the request200
responseTimetime taken to receive a response (ms)56
responseSizesize of the response (bytes)130
executedtests that passedStatus was 200, User was created
failedtests that failedUser has view permissions
skippedtests that were skippedUser had first name Joe
bodythe response body{ foo: "bar" }
> *Note: test names are comma separatedbody is optional, see Options*

Setup

Ensure you have Newman setup first:

npm install newman --save-dev

Then install this package:

npm install newman-reporter-csv --save-dev

Usage

You can then use the -r csv option to make Newman use the CSV reporter.

node_modules/.bin/newman run postman_collection.json -e postman_environment.json -r csv

Options

CLI OptionDescription
--reporter-csv-export Specify a path where the output CSV file will be written to disk. If not specified, the file will be written to newman/ in the current working directory.
--reporter-csv-includeBodyIf you wish to save the response body for each request, use this option.
node_modules/.bin/newman run postman_collection.json -e postman_environment.json -r csv --reporter-csv-includeBody
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago