newman-trace
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

newman-trace

Trace Postman collection runs with newman-trace.

Newman is a CLI tool to run Postman collections. The newman-trace CLI runs collections via newman and traces HTTP calls. Traces are recorded and exported as an HTTP Archive (HAR) file.

Use as a drop-in replacement for newman.

Animation of a terminal session showing the usage of newman-trace and HAR file information.

The HTTP Archive (HAR) format is a record of HTTP transactions with detailed performance data. It's used for measuring, logging, and comparing HTTP transaction and performance data over time.

Any HAR file tool can be used to analyze the output of newman-trace, such as:

Example of Chrome DevTools showing an analysis of a HAR file generated by newman-trace

HAR file output of Postman collection runs can enable integration scenarios, such as:

Install

npm install -g newman-trace

Usage

Usage: newman-trace run <collection> [newman-options] [newman-trace-options]

Options:
  --no-trace              Disable tracing
  --trace-export <path>   Specify a location for the trace file
  --trace-help            Displays this message

By default, the HAR file will be placed in the newman directory.

A version of Newman is bundled with this project. To use a different version of Newman, set the executable path as the value of the NEWMANTRACE_NEWMAN_PATH environment variable.

Example

newman-trace run Quotable.postman_collection.json --silent

License

Apache-2.0

Readme

Keywords

Package Sidebar

Install

npm i newman-trace

Weekly Downloads

0

Version

1.1.0

License

Apache-2.0

Unpacked Size

89.8 kB

Total Files

28

Last publish

Collaborators

  • kevinswiber