Use SystemLink TestStand steps to automatically send emails depending on test results.
Before you can create email notifications, you must first
integrate TestStand with your SystemLink server.
-
In NI SystemLink Server Configuration, ensure your server host name is correct and log in if your server requires credentials.
-
Specify an email address to send email notifications from.
-
In TestStand, in the test you want to send notifications for, right-click in the Step panel and click .
-
In the Step Settings panel, under Recipient, enter one or more email addresses or a local variable containing email addresses.
-
Specify the test condition(s) under which you want the recipients to receive the notification.
Note
If you select Send Immediately, TestStand sends a notification to the recipients when the test starts.
-
Create a TestStand step to use a preconfigured email template for the notifications.
-
Click .
-
In the Variables panel, under Locals, click to return an array of template metadata, including each template's name and ID.
-
In the Step Settings panel, under Templates, specify the variable name you created in step b.
-
In the details section for the Email Notification step, use a TestStand expression to specify the ID for the template you want to edit. For example, Locals.Templates[3].Id.
When you run your test, TestStand sends email notifications according to the conditions you specified in step 5. The notification emails contain links to the test results in Test Monitor.