Coder Social home page Coder Social logo

newman-reporter-slack's Introduction

newman-reporter-slack

A newman reporter for slack

newman run

collection - environment total failed
iterations 1 0
requests 1 0
testScripts 1 0
prerequestScripts 1 0
assertions 1 0
------------------------ ----- -------
total run duration 100ms

Installation

npm install newman-reporter-slack

Usage

Set the reporter options

Reporter option can be set as environment variables or from reporter options arguments

export SLACK_WEBHOOK_URL='https://hooks.slack.com/services/xxx/yyy/zzzzzzzzzzzz'
export SLACK_CHANNEL='#slack-channel'
export TITLE='newman run title'
export HEADER='newman run header'

Run newman test with the reporter option -r slack

newman run my-collection.postman_collection.json -r cli,slack --reporter-slack-channel '#slack-channel' --reporter-slack-webhook-url 'https://hooks.slack.com/services/xxx/yyy/zzzzzzzzzzzz'

newman-reporter-slack's People

Contributors

avidit avatar dependabot[bot] avatar otata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

newman-reporter-slack's Issues

Missing message when test fails.

Hi Guys,

You made a great tool but I have one, small problem. When my Postman suite is all green tests result is published on the specific channel on the Slack. Unfortunately, when one or more tests failed the result of the test isn't published. I don't know why and I have no idea how to check it. Thanks for any ideas.

Adding Failures

Hi!
It's not an issue but the idea to improvement.
I liked the compact output of the package. The single thing that I need and maybe important tot others - add detailed info about all Failures like newman CLI reporter does it. The detailing failures feature maybe a flag in the options in the case somebody no needs it.
Thanks!

reporter could not be loaded

Hello,

i have set everything up per the instructions. However when i execute i get this message.

newman: "slack" reporter could not be loaded.
please install reporter using npm

any ideas why?

Report doesn't send over Slack

Hi,

I have set up everything per instruction. Upon the newman run, there's no error throw but report won't send over Slack.

Can you help me figure it out?

Thanks

Slack report is not being posted

The command runs successfully , unfortunately not being posted to slack.

Command Used :

newman run "C:\Users\XXXXr\Desktop\Mobile API List.postman_collection.json" -e C:\Users\XXXX\Desktop\QA.postman_environment.json -r cli,slack --reporter-slack-channel '#api' --reporter-slack-webhook-url "

Not posted

Hello,
As per instruction, I run
newman run (jsonname).json -r cli,slack --reporter-slack-channel '#deploy' --reporter-slack-webhook-url 'https://hooks.slack.com/(further url)'

the json itself is executed without any errors, yet no output is posted on slack.
is that a known issue of some kind?

Multiple Slack Channel support

I was curious if it would be possible to add support to allow automation results to be posted to multiple slack channels. There is a lot of automation that we have run daily that all gets posted to a general automation-results channel. However, I'm finding it difficult to really locate and examine the results that I personally care about and would like to solve this issue by basically having the results get posted to a channel specific to the automation that I care about and contribute to.

Do you think this could be a possible feature to be added?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.