Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

newman-reporter-slackmsg

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newman-reporter-slackmsg

newman reporter to slack

latest
Source
npmnpm
Version
1.3.2
Version published
Maintainers
1
Created
Source

newman-reporter-slackmsg

Custom Newman reporter to send message to Slack

Before you get started

  • Install Newman $ npm run i -g newman
  • Create a Slack incoming webhook url or
  • Create a Slack bot to send to channel or user dynamically

Installation

npm i -g newman-reporter-slackmsg

Usage

 newman run <collectionFile> -e <environmentFile> --suppress-exit-code -r slackmsg --reporter-slackmsg-webhookurl '<webhookurl>'

Usage with channel override bot

 newman run <collectionFile> -e <environmentFile> --suppress-exit-code -r slackmsg --reporter-slackmsg-webhookurl '<https://slack.com/api/chat.postMessage>' --reporter-slackmsg-token '<bearer token>' --reporter-slackmsg-channel '<channel or userid>'

Reporter Options Optionals

 --reporter-slackmsg-messageSize '<messageSize>' e.g 150
 --reporter-slackmsg-token '<bearer token>' e.g xoxb-XXXXXXXXXXXX-TTTTTTTTTTTTTT
 --reporter-slackmsg-channel '<channel>' e.g #general
 --reporter-slackmsg-failuresChannel '<channel>' e.g. #alerts
 --reporter-slackmsg-collection '<collectionName> e.g test.json
 --reporter-slackmsg-environment '<environmentName> e.g env.json
 --reporter-slackmsg-reportingurl '<URL> e.g https://127.0.1/index.html
  --reporter-slackmsg-limitFailures '<limitFailures>; e.g 5

Reporter Options

webhookurl Webhook URL to point to the slack api where results are published

collection Option to add the name of collection file onto the message

environment Option to add the name of environment file onto the message

messageSize Option to change the message size, defaulted to 100

token Option to use bearer token for slack bots for channel override

channel Option to select channel or user receive the result

failuresChannel Option to select channel or user to receive failures

limitFailures Option to limit the amount failures shown in slack

Keywords

newman

FAQs

Package last updated on 24 Nov 2021

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