MagicPod provides a feature to notify test results by email.
This notification setting has the following characteristics:
You can specify whether or not to send result notifications for each Batch Run Setting.
Each project member can choose whether or not to receive notifications.
However, once a member opts in to receive notifications, they will receive result notifications for every test case in the project where notifications are enabled.
Because of this behavior, the request “Notify only specific members of specific test results by email” cannot be achieved only with MagicPod notification settings.
This page introduces a way to achieve this use case by using the external automation tool Zapier, so that only designated members will receive notifications for specific test results.
⚠️ Please note that this workflow involves tasks that are not available in the Zapier Free plan.
Overview of the Procedure
1. Create a group account to receive and forward test result notification emails.’ 2. When a notification arrives in the group account, use Zapier to perform the following: (1) Call the MagicPod Web API 'batch-runs' endpoint to retrieve the latest batch run result. (2) Filter the batch run result by its Batch Run Setting Name. (3) If the condition matches, forward the notification email from the group account to designated members only.
Step 1. Create a Group Account for Receiving Notifications
Create a new account in MagicPod.
This account will receive test result notification emails and forward them to the designated members.
Since the group account will be responsible for receiving the notifications, project members who should not receive notifications directly must turn off their email notification setting in MagicPod.
Step 2. Edit the Batch Run Setting Name
Email notifications are filtered based on the Batch Run Setting Name.
Therefore, we recommend adjusting the setting names so that they are easier to filter later in Zapier.
For example, if a project contains both "Project A" and "Project B" and you want to send their results to different members, you can rename them as follows:
With this setup, Zapier can filter by conditions such as “Batch Run Test Setting Name contains ‘Project A’”.
Step 3. Create a Zap in Zapier
In Zapier, create the following four tasks:
(1) Trigger when Gmail receives a notification email
App: Gmail
Trigger event: New Email Matching Search
Account: Group account’s email address
Search keywords: [Test Result]
(2) Retrieve the latest batch run result using the MagicPod Web API
App: Webhooks by Zapier
Action event: Custom request
Method: GET
-
URL:
https://app.magicpod.com/api/v1.0/<your_organization_name>/<your_project_name>/batch-runs/?count=1
-
Headers:
accept: application/json Authorization: Token <your_api_token>
(3) Filter by Batch Run Setting Name (Create multiple filters and conditions as needed)
App: Filter by Zapier
-
Only continue if:
Batch Runs Test Setting Name (Text) Contains Project A
(4) Forward the notification email if the condition matches
App: Gmail
Action event: Send Email
Account: Group account’s email address
To: Forwarding email address
From: Group account’s email address
Subject: New Email Matching Search > Subject
Body: New Email Matching Search > Body Plain
That completes the detailed procedure.
Please note that MagicPod also recognizes the need for more advanced configuration options for email notifications.
You can vote for this feature request from here. This will help us prioritize development, and you will also be notified once the issue has been addressed. We would appreciate your consideration.