Microsoft Teams Integration
Connect BugBrain to Microsoft Teams to receive real-time notifications about test executions, failures, and important events directly in your Teams channels.
What Can You Do?
Real-Time Notifications
Get instant updates in Teams:
- Test execution started/completed
- Test failures with details
- Discovery session completed
- Team member activities
- Quota usage alerts
Rich Message Cards
Beautiful, actionable notifications:
- Visual status indicators (✅ ❌ ⚠️)
- Test details and screenshots
- Quick action buttons
- Direct links to BugBrain
- Formatted error messages
Channel-Based Routing
Send different notifications to different channels:
- Critical failures → #alerts
- Daily summaries → #qa-reports
- Discovery results → #testing
- Team activities → #dev-updates
Setting Up Teams Integration
Prerequisites
You need:
- Microsoft Teams workspace
- Permission to add connectors/webhooks
- Admin or owner role in BugBrain
- Available on all plans (including Starter)
Method 1: Incoming Webhook (Recommended)
Step 1: Create Incoming Webhook in Teams
- Open Microsoft Teams
- Go to the channel where you want notifications
- Click ••• (More options) next to channel name
- Select Connectors or Workflows
- Search for “Incoming Webhook”
- Click Configure or Add
- Name it “BugBrain Notifications”
- Upload an icon (optional)
- Click Create
- Copy the webhook URL (you’ll need this!)
Important: Keep your webhook URL secret! Anyone with the URL can send messages to your Teams channel.
Step 2: Add Webhook to BugBrain
- Go to BugBrain → Settings → Integrations
- Click Connect next to Microsoft Teams
- Paste your webhook URL
- Give it a name (e.g., “QA Alerts Channel”)
- Click Connect
- BugBrain will send a test message to Teams
Step 3: Verify Connection
Check your Teams channel for a test message from BugBrain. If you see it, you’re all set!
Method 2: Microsoft App (Coming Soon)
Native Microsoft Teams app with advanced features:
- OAuth authentication
- Interactive messages
- Thread replies
- User mentions
- Adaptive cards
Status: Currently in development. Webhook method is fully functional.
Configuring Notifications
Choose What to Send
Select which events trigger Teams notifications:
Test Execution:
- ✅ Test passed
- ❌ Test failed
- ⚠️ Test had warnings
- 🔄 Test execution started
- ⏱️ Test timed out
Discovery:
- 🔍 Discovery session completed
- 📊 Discovery analysis ready
- 🚨 Critical issues found
Team Activity:
- 👤 New team member joined
- 📝 Test case created/updated
- 🗂️ Project created
- 🎯 Test plan scheduled
System Alerts:
- 📈 Quota usage warnings (80%, 90%, 100%)
- ⚠️ Integration errors
- 💰 Billing updates
- 🔒 Security alerts
Configure events:
- Settings → Integrations → Microsoft Teams → Configure
- Check events you want to receive
- Save settings
Filter by Priority
Only get notified for important tests:
Priority filters:
- Critical only - Only P0 tests
- High and Critical - P0 and P1 tests
- Medium and above - P0, P1, P2
- All tests - Every test result
Configure:
- Settings → Integrations → Teams → Filters
- Select priority threshold
- Apply per channel (if multiple)
- Save
Filter by Project
Send notifications from specific projects:
- Settings → Integrations → Teams → Filters
- Select “Choose projects”
- Check projects to include
- Save settings
Use case: Create different webhooks for different channels, each watching specific projects.
Filter by Tags
Route notifications based on test tags:
Example setup:
- Tests tagged “smoke” → #alerts channel
- Tests tagged “regression” → #qa-updates
- Tests tagged “production” → #prod-monitoring
Configure:
- Create multiple Teams connections (one per channel)
- For each connection, set tag filters
- Tests matching tags go to that channel
Message Format
Test Failure Notification
❌ Test Failed
Test: Login with invalid credentials
Project: Production App
Priority: High
Duration: 12s
Error: Element not found: button[data-testid="login"]
View Details → [Link to execution]
Rerun Test → [Quick action]
Create Issue → [Create Jira ticket]Test Success Notification
✅ Test Passed
Test: Complete checkout flow
Project: E-commerce Site
Duration: 45s
View Details → [Link]Discovery Complete Notification
🔍 Discovery Session Completed
Website: https://app.example.com
Pages Found: 47
Flows Detected: 12
Duration: 8m 32s
📊 Summary:
- 8 login flows
- 4 CRUD patterns
- 23 forms detected
View Full Report → [Link]
Generate Tests → [Quick action]Daily Summary (Optional)
📊 Daily Test Summary
Date: January 15, 2026
✅ Passed: 142 (94%)
❌ Failed: 9 (6%)
⏱️ Avg Duration: 23s
🔥 Top Failures:
1. Login test (3 failures)
2. Checkout flow (2 failures)
View Analytics → [Link]Customizing Messages
Message Templates
Customize notification content:
- Settings → Integrations → Teams → Message Templates
- Select notification type
- Edit template using variables
- Preview changes
- Save template
Available variables:
{{testName}}- Test case name{{projectName}}- Project name{{status}}- Pass/Fail/Warning{{duration}}- Execution time{{error}}- Error message{{priority}}- Test priority{{executionUrl}}- Link to BugBrain{{screenshots}}- Failure screenshots
Example custom template:
🚨 {{status}} - {{priority}} Priority
{{testName}}
{{projectName}}
{{error}}
Duration: {{duration}}
[View Details]({{executionUrl}})Quiet Hours
Pause notifications during off-hours:
- Settings → Integrations → Teams → Quiet Hours
- Enable quiet hours
- Set time range (e.g., 10 PM - 7 AM)
- Select timezone
- Choose days (e.g., weekdays only)
- Save
During quiet hours:
- Notifications are held (not sent)
- Summary sent when quiet hours end (optional)
- Critical alerts can still come through (optional)
Multiple Channels Setup
Why Use Multiple Channels?
Different teams need different information:
- #alerts - Critical failures only
- #qa-daily - All test results
- #dev-team - Project-specific updates
- #stakeholders - High-level summaries only
Setting Up Multiple Webhooks
- Create webhook in each Teams channel
- In BugBrain, add each webhook as separate connection
- Configure filters for each:
- Alerts channel: Critical priority only, all projects
- QA channel: All priorities, test execution events
- Dev channel: Specific project, all events
- Name connections clearly (e.g., “Teams - Alerts Channel”)
Routing Example
Setup for 3 channels:
#critical-alerts:
- Priority: Critical only
- Events: Test failures, timeouts
- Projects: Production only
- Quiet hours: Never
#qa-team:
- Priority: All
- Events: All test executions, discovery
- Projects: All
- Quiet hours: 10 PM - 7 AM
#dev-notifications:
- Priority: High and above
- Events: Failures only
- Projects: Development, Staging
- Tags: regression, smoke
- Quiet hours: Weekends
Quick Actions
Enable quick actions in Teams messages:
Rerun Test
Click button in Teams to rerun failed test:
- Enable “Quick Actions” in integration settings
- Test failure notifications include “Rerun” button
- Click button in Teams
- Test starts immediately
- Get new notification with results
Create Issue
Create Jira/Trello issue from Teams:
- Requires Jira or Trello integration
- Click “Create Issue” in notification
- Opens BugBrain (or creates automatically)
- Issue linked to test execution
Mute Test
Temporarily mute notifications for flaky test:
- Click “Mute” in notification
- Test notifications paused for 24 hours
- Unmute anytime in BugBrain settings
Note: Quick actions require users to authenticate with BugBrain. First click will prompt for authentication.
Best Practices
1. Start with One Channel Begin with a single channel for all notifications. Expand to multiple channels as you refine your process.
2. Use Priority Filters Avoid notification fatigue by filtering to important tests only, especially in high-traffic channels.
3. Set Quiet Hours Configure quiet hours to avoid off-hour notifications for non-critical issues.
4. Name Webhooks Clearly Use descriptive names like “Teams - QA Alerts” so you know which channel each webhook targets.
5. Test Before Going Live Use a test channel to verify notifications before connecting to main team channels.
6. Enable Daily Summaries Instead of every test notification, consider a daily summary for low-priority tests.
Advanced Features
Threaded Conversations
Group related notifications:
Enable threading:
- Settings → Integrations → Teams → Advanced
- Enable “Use threads”
- Choose thread grouping:
- By test case
- By test plan
- By execution batch
- By project
Benefit: Related notifications appear in same thread instead of cluttering channel.
@Mentions
Notify specific team members:
Auto-mention rules:
- Test owner when their test fails
- On-call person for critical failures
- Project lead for project-wide issues
- Team when daily summary sent
Configure:
- Settings → Integrations → Teams → Mentions
- Add mention rules
- Map BugBrain users to Teams users
- Save rules
Example: When “Login Test” fails, mention @john-doe in Teams.
Scheduled Reports
Send regular reports to Teams:
Report types:
- Daily summary at 9 AM
- Weekly report on Mondays
- End-of-sprint report
- Monthly metrics
Configure:
- Settings → Integrations → Teams → Reports
- Enable scheduled reports
- Choose report type and frequency
- Select target channel
- Customize report content
Troubleshooting
Not Receiving Notifications
Check these:
- Verify webhook URL is correct
- Check event filters in BugBrain settings
- Ensure tests are actually running
- Verify quiet hours aren’t active
- Check Teams channel settings
Test connection:
- Settings → Integrations → Teams
- Click “Send Test Message”
- Check Teams channel
Webhook URL Invalid Error
- Webhook URL should start with
https:// - Must be a Microsoft Teams webhook URL
- Format:
https://yourcompany.webhook.office.com/... - Try regenerating webhook in Teams
Messages Look Broken
- Ensure you’re using latest webhook connector
- Check message template syntax
- Verify variables are correctly formatted
- Try resetting to default template
Duplicate Notifications
- Check if multiple webhooks point to same channel
- Verify filter settings don’t overlap
- Review project-level integration settings
- Disable unused webhook connections
Security & Privacy
Data sent to Teams:
- Test names and descriptions
- Execution results and status
- Error messages
- Project names
- User names (who ran tests)
Data NOT sent:
- Passwords or credentials
- API keys or secrets
- Billing information
- Unrelated test data
Webhook security:
- Webhook URLs are encrypted in BugBrain
- Only accessible to org admins
- Can be regenerated anytime in Teams
- Rotate regularly for security
Rate Limits
Microsoft Teams limits:
- 200 messages per minute per webhook
- BugBrain automatically throttles to stay within limits
- If limit reached, messages queue and send when available
BugBrain recommendations:
- Use priority filters to reduce volume
- Enable quiet hours
- Use daily summaries instead of individual notifications for low-priority tests
Quota & Limits
Integration limits by plan:
| Feature | Starter | Growth | Pro |
|---|---|---|---|
| Webhooks | 3 | 10 | Unlimited |
| Notifications/day | Unlimited | Unlimited | Unlimited |
| Quick Actions | ❌ | ✅ | ✅ |
| Scheduled Reports | ❌ | ✅ | ✅ |
| Threaded Messages | ❌ | ✅ | ✅ |
| Custom Templates | ❌ | ✅ | ✅ |
Next Steps
- Set up Slack integration for additional channels
- Configure Jira integration for issue tracking
- Set up webhooks for custom workflows
- Learn about notifications