To help engineering teams build powerful automation workflows and integrate test results into their existing tools, BrowserStack is excited to announce the launch of Configurable Webhooks in Test Observability!
You might be wondering why we’re writing up a blogpost - a webhook isn’t exactly new - but Test Observability’s webhook system is more than just that - it is practically an API workflow builder. We wanted a system that gives users ultimate control with the ability to trigger in creative ways and even customize their content as they please.
Check it out by heading to Test Observability today!
Why We Built Configurable Webhooks
Every engineering team wants to streamline their testing and CI/CD workflows, but they often face challenges when trying to automate actions based on test outcomes.
Teams were unable to achieve things like:
- Getting rich test results and analytics directly in their existing tools
- Receiving instant notifications for critical test failures
- Automating deployments and PRs based on test results
Firstly - the data is across disparate systems, and no direct integrations exist for much of what users want to achieve. Teams end up building multiple tools or patchwork implementations in-house - which are limited in capability, and ultimately add a drag on the bandwidth of the team in the long run.
With Configurable Webhooks - we’re now making it effortless to create workflows with your toolchain. Test Observability is already uniquely positioned to help users precisely instrument and surface insights for all types of tests - Functional, Unit, API, or others — whether the test runs on BrowserStack infrastructure, a developer’s laptop, or an in-house browser grid.
Now, users can build any type of workflow and combine them with data from Test Observability. You can even use Test Observability's power features like Quality Gate, and Alerts with the feature.
What Can You Build?
With complete control over the Webhook’s configuration - you can build powerful automation workflows by sending API calls to any endpoint when specific events occur.
The possibilities are endless! Here are some examples of what teams are building with Webhooks already:
- Automated Incident Management
- Create incidents or tickets in tools like PagerDuty or Jira when critical tests fail
- Automatically resolve incidents when tests start passing again
- Enhanced CI/CD Workflows
- Block deployments based on custom quality criteria with Quality Gate
- Trigger downstream jobs based on test results
- Real-time Notifications
- Instant notifications for P0 test failures in tools like Microsoft Teams
Intelligent Sequencing
- Customizable Trigger System
- Multiple triggering events - Build Finish, Test Failure, Quality Gates and Alerts
- Set up conditional triggers - fire out the webhook only when the right
- Automatic re-triggering of webhooks when failing tests or builds start passing again
- Flexible Configuration of Webhook Payload
- Choose between simple pre-configured templates or custom JSON payloads
- Complete control over webhook body, request method, headers, auth and more
Dynamic Data with Variables
The webhooks feature lets you keep the data being sent up-to-date and customized through variables:
- Extensive Built-in Variables
- Access data generated by your tests or Test Observability
- Dozens of variables - from test metadata including status, duration, and failure logs to quality metrics like flakiness, performance anomalies and more
- Reference anywhere with a simple handlebars syntax e.g.
{{BUILD_STATUS}}
- Webhook Response Variables
- Access data from the API response to your triggered webhook
- Chain multiple webhooks together and build complex automation scenarios
- Reference with handlebars syntax and JSON Path e.g.
{{RESPONSE.incident.id}}
Getting Started
You can start using Webhooks in Test Observability today! Here's how:
- Navigate to Settings → Webhooks in Test Observability
- Select a template to get started with popular tools out of the box!
- Tweak your trigger conditions and configure your payload body
- Run your tests and watch the magic!
Check out our Webhook documentation to learn more about building powerful integrations with Test Observability.