1.0.1 • Published 1 year ago

newman-reporter-realtimecsv v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Newman Reporter Realtime CSV

Add CSV responses in realtime in the console.

Based on newman-reporter-csv

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
executedtest names that passed (comma separated)Status was 200, User was created
failedtest names that failed (comma separated)User has view permissions
skippedtest names that were skipped (comma separated)User had first name Joe
bodythe response body (optional column. see Options){ foo: "bar" }
totalAssertionsTotal number of test assertions on the request4
passedCountTotal number of test assertions that passed2
failedCountTotal number of test assertions that failed1
skippedCountTotal number of test assertions that were skipped1

Setup

Ensure you have Newman setup first:

npm install newman --save-dev

Then install this package:

npm install newman-reporter-realtimecsv --save-dev

Usage

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

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

Options

CLI OptionDescription
--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 realtimecsv --reporter-realtimecsv-includeBody
1.0.1

1 year ago

1.0.0

1 year ago