Testing dialog activities
By testing dialog activities in a test environment, you can ensure that the triggers and actions in the activity flow are producing the result that you expect. If the dialog activity contains targets, you can ensure that the actions reach the target customers. When your testing is successful, you can deploy the dialog activity to the production environment.
This procedure and its supporting examples are designed for use in a testing environment. It is not recommended that you test dialog activities directly in a production environment.
To save time when you are testing dialog activities, you can set up the test environment to minimize the waiting period for triggers and actions to occur. Depending on the dialog activity, this set up might require temporary changes to configuration files and database table data. For this reason, testing certain dialog activities requires support from a Site Administrator or developer.
Before you begin
- If your dialog activity trigger is processed when the SendMarketingTriggers scheduled job runs, review the following topics to understand this scheduled job:
- If your dialog activity contains the Wait trigger, you should also understand how to run the Wait trigger in test mode by changing a property in the marketing component configuration file.
- Plan ahead how you are testing the triggers, targets, and actions in your activity. Use the
following topics for tips:
- Tips for testing triggers and actions in dialog activities
- Tips for testing targets in web and dialog activities (if your dialog activity contains targets)
Procedure
- Log on to the server in the test environment.
- Open the Marketing tool.
-
Open the dialog activity that you want to test and take note of details that are relevant to
testing. For instance, the triggers and actions, and the target criteria (if the activity includes
targets).
Tip: Consider taking a screen snapshot of the dialog activity to refer to during testing.
- Make sure that the dialog activity is active.
-
Work with the Site Administrator or developer on the following tasks:
-
If your dialog activity contains targets, you might need to register a test customer who meets
the target criteria before you trigger the activity.
For example, if the dialog activity contains a Purchase History target that requires customers to place at least three orders, you might need to register a test customer and place the orders in the test environment before you trigger the activity.
- Trigger the activity and observe the results.
- If necessary, change the dialog activity until you get the result you want.
- When you complete testing, make sure to restore any configurations in the test environment back to their original settings. This way, you can avoid propagating test environment settings to the production environment.
- Restart your test server.
- Deploy the tested dialog activity to the production environment.