Webhooks are a powerful tool in TestMonitor that enables real-time communication between TestMonitor and external systems. They allow you to automate workflows, trigger actions, and receive instant notifications based on events occurring in TestMonitor.
This Academy Article will walk you through setting up and using webhooks in TestMonitor, providing practical examples along the way.
Whether you're looking to automate updates, set up real-time alerts, or integrate with CI/CD pipelines, webhooks offer a flexible solution for enhancing your testing workflow.
To add a webhook in TestMonitor:
Name: Identify your webhook.
Events: Select the events that should trigger the webhook.
URL: Enter the endpoint URL of your application.
Secret: Set a webhook secret for added security.
Enabled: Toggle the webhook state.
Note: Each project can have up to five active webhooks, giving you flexibility in managing multiple integrations.
To ensure your webhook is working correctly:
Successful tests will display a green checkmark, while failed tests allow you to view request and response details for troubleshooting.
Use webhooks to automatically update project management tools whenever new test results are available. Here is an example of how webhooks can be used to create Trello cards automatically whenever an issue is created in TestMonitor.
Use webhooks to set up notifications in Slack (with a Slack workflow) or Microsoft Teams (with power automate) for completed test runs, ensuring your team stays informed in real-time.
Use webhooks to trigger actions in your CI/CD pipeline when certain test events occur, streamlining your development workflow. Here is an example of how webhooks can be implemented with Circle CI.