Sending test messages
Before sending a messaging campaign to your users, as a suggested best practice, we recommend testing to make sure it looks right and operates as intended. You can create and send test messages to select devices or team members using the tools in the Braze dashboard.
Make sure to save your campaign draft after testing to avoid deleting your campaign. You can send test messages without saving the message as a draft.
Step 1: Identify your test users
Before testing your messaging campaign, it’s important to identify your test users. These users can be either existing user IDs or email addresses, or new users that are used exclusively for testing messaging campaigns.
Optional: Create a Content Test Group
A convenient way to organize your test users is by creating a Content Test Group, which includes a group of users that will receive test messages from campaigns. You can add this test group to the Add Content Test Groups field under Test Recipients in your campaign, and launch your tests without creating or adding individual test users.
Step 2: Send channel-specific test messages
For steps to send test messages, refer to the following section for your respective channel.
- Draft your email message.
- Select Preview and Test.
- Select the Test Send tab and add your email address or user ID in the Add individual users field.
- Select Send Test to send your drafted email to your inbox.
Mobile push
- Draft your mobile push.
- Select the Settings tab and add your email address or user ID in the Add Individual Users field.
- Select Send Test to send your drafted message to your device.
Web push
- Create your web push.
- Select the Test tab.
- Select Send Test to Myself.
- Select Send Test to send your web push to your web browser.
If you have already accepted push messages from the Braze dashboard, the push will come through in the corner of your screen. Otherwise, click Allow when prompted, and the message will appear.
After creating your Content Card, you can send a test Content Card to your app to see what it will look like in real-time.
- Draft your Content Card.
- Select the Test tab and select at least one Content Test Group or individual user to receive this test message.
- Select Send Test to send your Content Card to your app.
After creating your SMS or MMS message, you can send a test message to your phone to see what it will look like in real-time.
- Draft your SMS or MMS message.
- Select the Test tab and select at least one Content Test Group or individual user to receive this test message.
- Select Send Test to send your test message.
After creating your webhook, you can do a test send to check the webhook response. Select the Test tab and select Send Test to send a test send to the supplied webhook URL. You can also select an individual user to preview the response as a specific user.
Testing personalized campaigns
If you are testing campaigns that populate user data or use custom event properties, you’ll need to take additional or different steps.
Testing campaigns personalized with user attributes
If you are using personalization in your message, you’ll need to take additional steps to properly preview your campaign and check that user data is properly populating the content.
When sending a test message, make sure to choose either the option to Select Existing User or preview as a Custom User.
Selecting an existing user
If selecting an existing user, enter the specific user ID or email in the search field. Then, use the dashboard preview to see how your message would appear to that user, and send a test message to your device that reflects what that user would see.
Selecting a custom user
If previewing as a custom user, enter text for various fields available for personalization, such as the user’s first name and any custom attributes. Once again, you can enter your own email address to send a test to your device.
Testing campaigns personalized with custom event properties
Testing campaigns personalized with custom event properties differs slightly from testing other types of campaigns outlined.
Method 1: Triggering campaign manually
You can trigger the campaign yourself as a robust way to test campaigns personalized using custom event properties:
- Write up the copy involving the event property.
- Use action-based delivery to deliver the campaign when the event occurs.
If you’re testing an iOS push campaign, you must set the delay to one minute to allow yourself time to exit the app because iOS doesn’t deliver push notifications for the currently open app. Other types of campaigns can be set to deliver immediately.
- Target the users as you would for testing by using a testing filter or targeting your own email address, and finish creating the campaign.
- Go into your app and complete the custom event.
The campaign will trigger and show the message customized with the event property.
Method 2: Sending yourself a test message
Alternatively, if you are saving custom user IDs, you can also test the campaign by sending a customized test message to yourself.
- Write the copy for your campaign.
- Select the Test tab and choose Customized User.
- Add the custom event property at the bottom of the page, and add your user ID or email address to the top box.
- Select Send Test to receive a message personalized with the property.
Method 3: Using Liquid
You can test custom event properties by manually inputting values with Liquid.
- In the message editor, input values for your custom event properties.
- Select the Preview as a User tab to check that the correct message displays.
Troubleshooting
In-app messages
If your in-app message campaign is not triggered by a push campaign, check the in-app campaign segmentation to confirm the user meets the target audience before receiving the push message.
For test sends on Android and iOS, the in-app messages that use the Request push permission on-click behavior may not display on some devices. As a workaround:
- Android: Devices must be on Android 13 and our Android SDK version 21.0.0. Another reason may be that the device on which the in-app message is displayed already has a system-level prompt. You may have selected Do not ask again, so you may need to reinstall the app to reset the notification permissions before testing again.
- iOS: We recommend your developer team review the implementation of push notifications for your app and manually remove any code that would request push permissions. For more information, see Push primer in-app messages.
For an action-based in-app message campaign to deliver, custom events must be logged through the Braze SDK, not REST APIs, so the user can receive eligible in-app messages directly to their device. Users can receive the in-app message if they perform the event during the session.