1.0.0 • Published 3 years ago

newman-reporter-csvextra-remaster v1.0.0

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

Newman Reporter CSV Extra

Add CSV (Extra) 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
fullNameFull name of the request (Folder + Request Name)Folder 1/Create user
requestBodythe request body{ foo: "bar" }
responsebodythe 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-csvextra --save-dev

Usage

You can then use the -r csvextra option to make Newman use the CSV (extra) reporter.

npx newman run postman_collection.json -e postman_environment.json -r csvextra

Options

CLI OptionDescription
--reporter-csvextra-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-csvextra-noPrettyPreserves the original request/response body instead of formatting with JSON Pretty Print
npx newman run postman_collection.json -e postman_environment.json -r csvextra --reporter-csvextra-noPretty