Slack Notifications for App Automation
With Slack Notifications for App Automation, you can receive real-time updates about your test sessions and build summaries directly in your Slack channels. This eliminates the need to manually monitor the dashboard and keeps your entire team informed about test execution results.
Prerequisites
- A TestMu AI account with App Automation access.
- Slack Integration enabled on your TestMu AI account.
- The Slack channel(s) you want to send notifications to must already exist in your Slack workspace.
Setting Up Slack Notifications
To enable Slack notifications for your App Automation tests, add the slackChannel capability to your test configuration. Notifications are sent automatically when each test session completes and when the entire build finishes execution.
Capability Reference
| Attribute | Details |
|---|---|
| Capability | slackChannel |
| Type | String |
| Required | No (optional) |
| Example | mobile-test-results |
Configuration Examples
- Java
- Python
- JavaScript
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("deviceName", "Galaxy S23");
capabilities.setCapability("app", "lt://APP123456789");
capabilities.setCapability("build", "Regression Suite v2.0");
capabilities.setCapability("name", "Login Test");
capabilities.setCapability("isRealMobile", true);
capabilities.setCapability("slackChannel", "mobile-test-results");
desired_caps = {
"platformName": "Android",
"deviceName": "Galaxy S23",
"app": "lt://APP123456789",
"build": "Regression Suite v2.0",
"name": "Login Test",
"isRealMobile": True,
"slackChannel": "mobile-test-results"
}
const capabilities = {
platformName: "Android",
deviceName: "Galaxy S23",
app: "lt://APP123456789",
build: "Regression Suite v2.0",
name: "Login Test",
isRealMobile: true,
slackChannel: "mobile-test-results"
};
What Notifications You Receive
TestMu AI sends two types of Slack notifications:
| Notification Type | When It's Sent | What It Contains |
|---|---|---|
| Session Update | When each test session completes | Session name, status (passed/failed), device info |
| Build Summary | When all sessions in a build finish | Overall pass/fail count, build duration, build link |
How Channel Routing Works
The slackChannel capability is set at the session level. If you update the channel name in a subsequent session under the same build, notifications for that session onward are sent to the updated channel.
When multiple users or multiple sessions specify different channels concurrently within the same build, all channels are merged and notifications are sent to all of them.
Fallback Behavior
If the slackChannel capability is not provided or the specified channel is invalid, TestMu AI follows this fallback logic:
- Channel provided and valid → Notifications are sent to the specified channel.
- Channel provided but invalid (e.g., channel doesn't exist or fails validation) → Notifications fall back to the default channel configured in your Slack Integration settings.
- No channel provided → Notifications are sent to the default channel if one is configured; otherwise, notifications are skipped silently.
Slack notifications never block or impact your test execution. If a notification fails to deliver for any reason, the test continues to run normally.
Related Resources
Got any questions?
Please reach out at our 24x7 Chat Support or you could also mail us at [email protected].
