Socket
Book a DemoInstallSign in
Socket

newman-reporter-postman-cloud

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newman-reporter-postman-cloud

A newman reporter that sends run metrics to Postman

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
231
-1.28%
Maintainers
4
Weekly downloads
 
Created
Source

newman-reporter-postman-cloud

A Newman reporter that uploads newman run summary data back to Postman. This reporter processes the newman run metrics, and then uploads the data to the provided Workspace in Postman.

Once uploaded, you can see your collection runs on Postman Desktop App or on Postman Web.

Install

The reporter works as a plugin with Newman so ensure that you have already installed that package globally, using npm install -g newman.

To globally install the postman cloud reporter:

npm install -g newman-reporter-postman-cloud

Usage

To use this reporter with Newman CLI, specify postman-cloud in Newman's -r or --reporter option.

newman run collection.json -r postman-cloud

CLI Options

ParameterDescriptionRequired
--reporter-postman-cloud-apiKey "<apiKey>"This will be used to authenticate API call to Postman API. You can generate an API Key from hereYes
--reporter-postman-cloud-workspaceId "<workspaceId>"This is the workspace id where you want your collection run to be created in PostmanYes

With Newman as a Library

All the CLI functionality is available for programmatic use within a nodejs script.

const newman = require('newman');

newman.run({
  collection: './path/to/collection.json',
  reporters: ['postman-cloud'],
  reporter: {
    'postman-cloud': {
      apiKey: 'apiKey',
      workspaceId: 'workspaceId'
    }
  }
})

Compatibility

newman-reporter-postman-cloudnewmannode
>= v1.0.0>= v5.3.2>= v14.x

License

This software is licensed under Apache-2.0. See the LICENSE.md file for more information.

Keywords

newman

FAQs

Package last updated on 10 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts