How to Use Test Events
The Courier Notification Designer allows you to preview branding, content, test variables or Handlebars code in each channel and send test emails.
This step-by-step guide helps you define test events and use the preview function across multiple delivery channels.
Previewing Your Notification
You can preview the final rendered output of a notification in the notification designer’s preview
tab.
Using Test Events
When you initially open the preview tab on the demo Welcome to Courier email, there will be a generic “Welcome Example” event with an empty profile.
This is why any variables you insert into the Example template will not work until you add your own custom Test Event or update the JSON of the Welcome Example.
New Test Event
INFO
In order to send an email notification or SMS via the Send Tab, you will need to include an email and/or phone # in the profile
object of the test event Json.
Previewing Variables
To preview and validate any variables you’ve built into the Notification, you need to create a test event.
Managing Test Events in the Preview
- Click
manage
Test Events in the Preview.
Format Using JSON
- Add valid JSON key/value pairs with values in the data and/or profile objects for your variables.
Read More: JSON Paths and Using Substitution Variables in your Notifications.
Creating Test Events From Logs
When you send an event to Courier, that event can be viewed in the Data Log. You can turn those events from the data into a test event - it will be located in the preview tab of the event it is mapped to. Open “Event Received” in the Timeline and click “Save as Test Event.”
Create a Test Event From the Logs
Email Preview
Email is the only channel that will show a fully rendered image as it will appear to the recipient in the preview. In other channels the preview only allows you to validate the variables.
Plain Text Preview
The Plain Text Preview toggle lets you switch your Email preview between HTML and plain text versions.
Plain Text Preview Toggle
Plain Text Preview
Sending a Test Email
When previewing an Email Notification, you can send a test email by selecting yourself or other members of your Tenant to receive it.
SMS Preview
Preview Your SMS Before Sending
Preview Emails Across Multiple Brands
When previewing an Email, if you have created multiple Brand Templates, you can switch between them. If you haven’t, then the Email preview will use your Default Brand design.
Select a Brand to Preview