A newman reporter that sends run metrics to Postman
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.
---
npm install -g newman.To globally install the postman cloud reporter:
``console`
npm install -g newman-reporter-postman-cloud
---
in Newman's -r or --reporter option.`console
newman run collection.json -r postman-cloud
`
$3
| Parameter | Description | Required |
|---------------|-----------------|--------------|
| --reporter-postman-cloud-apiKey " | This will be used to authenticate API call to Postman API. You can generate an API Key from here | Yes |
| --reporter-postman-cloud-workspaceId " | This is the workspace id where you want your collection run to be created in Postman | Yes |#### With Newman as a Library
All the CLI functionality is available for programmatic use within a
nodejs script.
`javascript
const newman = require('newman');newman.run({
collection: './path/to/collection.json',
reporters: ['postman-cloud'],
reporter: {
'postman-cloud': {
apiKey: 'apiKey',
workspaceId: 'workspaceId'
}
}
})
``---
| newman-reporter-postman-cloud | newman | node |
|-----------------------------------|------------|----------|
| >= v1.0.0 | >= v5.3.2 | >= v14.x |
---