Support & information center

Integrating testing and monitoring results with Slack

You can send testRTC run results with a Slack channel. To that end you will be using the webhook entry field of your test script:

Follow the steps below to setup your own Slack webhook:

  1. Optional: Create in your slack account a channel to use for receiving these notifications. You can skip this and use an existing channel
  2. Click on the Apps menu on the sidebar in Slack
  3. In the App Directory, pick Incoming Webhooks
  4. Select the channel you want testRTC notifications to appear in
  5. Copy the Webhook URL from the configuration of the Incoming Webhooks app
  6. Paste it into the Webhook field in the editor for your test or monitor script in the following format: {“format”: “json/text”, “url”:””<YOUR-WEBHOOK-URL>”}

It should look something like this:

{ "format": "json/object", "url": "" }
Code language: JSON / JSON with Comments (json)

This will send all results of a monitor or a test to the slack channel.

You can use the #webhook-filter run option as shown in the image above to filter the webhook and have it invoked only on certain test result status. For example, you can set it to #webhook-filter:error,warning to invoke the webhook only for tests that finish with an error or a warning status.

There are other webhook formats available as well.

Was this article helpful?

Related Articles