1.1.0 • Published 4 years ago

newman-reporter-customcsv v1.1.0

Weekly downloads
3
License
ISC
Repository
-
Last release
4 years ago

Newman Reporter CustomCSV

Add custom 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
requestNamename of the request madeCreate user
methodHTTP method of the requestPOST
urlURL of the requesthttp://localhost:3000/user/create
responseTimetime taken to receive a response (ms)56
consoleMessageconsole logs printed through postman collection test scriptsExample console print
executedtests that passedStatus was 200, User was created
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-customcsv --save-dev

Usage

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

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

Options

CLI OptionDescription
--reporter-customcsv-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-customcsv-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 customcsv --reporter-customcsv-includeBody
1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago