Sending notifications
Learn how to send notifications to external apps when test results are available
Notification providers
Momentic supports sending notifications to various external messaging and alerting apps. This way your team can be notified as soon as a test run is complete, or when a test fails. The table below provides a complete list of the officially supported providers, as well as how to integrate them with Momentic.
Notification provider | Integration | How to integrate |
---|---|---|
Slack | Webhook | How to get a webhook URL |
Discord | Webhook | How to get a webhook URL |
Teams | Webhook | How to get a webhook URL |
PagerDuty | API key | How to get an API key |
VictorOps | Webhook | How to get a webhook URL |
SquadCast | Webhook | How to get a webhook URL |
OpsGenie | API key | How to get an API key |
Sending notifications from a test
Test notifications can be configured by opening the test editor and clicking on the “notifications” button in the top right corner of the page. This will open a dialog where you can configure the notification settings for the test.
Like many other string inputs in momentic, you can use {{}}
expressions in either the success or failure message fields
to enrich the message with other information extracted from the test.
Additionally, we expose an extra env variable env.FINAL_SCREENSHOT_URL
that contains a link to a screenshot of the final
state of the test. Certain providers will automatically unfurl the screenshot within their app.
A custom failure message might look something like this:
Was this page helpful?