Napoleon's Pixelated Mugshot
    Have ideas to improve npm?Join in the discussion! »

    newman-reporter-slackmsg

    1.3.1 • Public • Published

    newman-reporter-slackmsg

    Custom Newman reporter to send message to Slack

    Before you get started

    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-chanel '<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-chanel '<channel>' e.g #general
     --reporter-slackmsg-collection '<collectionName> e.g test.json
     --reporter-slackmsg-environment '<environmentName> e.g env.json
    
    

    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

    Install

    npm i newman-reporter-slackmsg

    DownloadsWeekly Downloads

    242

    Version

    1.3.1

    License

    ISC

    Unpacked Size

    211 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar