Inserting images in TestStand can be either trivial or complex depending on where you want the image to be added on the report, and the type of report you are generating. In this article, we are going to show a simple approach you can use to add step-related images to HTML and ATML Reports.
As explained here. you can assign an HTML <img> tag string to the Step.Result.ReportText property to easily add an image associated with a specific step in your HTML and ATML reports.
Let's take the following NI logo image as an example:

If you want to associate it to a test step in a report, here is what you need to do:
- Download the image (ni_logo.png) and store it in a folder named Images to Report.
- Launch TestStand, create a sequence file and save it to the same folder as the image.
- In the Insertion Palette, select the <None> adapter, then add an Action step to your main sequence.
- In step properties pane, select Expressions category. Add the following expression to the Post-Expression field.
-
Step.Result.ReportText = "<img alt='NI Logo' src='ni_logo.png' width='100px' />"
- Open Configure >> Station Options. Make sure the Report plugin is selected. Click the Options button and select either HTML or ATML.
- If you choose HTML, make sure you follow the steps in the KB Not Able to Insert Image in TestStand HTML Report to properly show the image when the report is generated.
- Run the sequence using either Single Pass or Test UUT.
- Review the report to see the image embedded in the report.
Here is what your example sequence should look like.

Here is what you should see when the reports are generated.
| THML Report | ATML Report |
 |  |
Note: You must save the picture in the directory in which you saved the sequence file. Also remember that because text files cannot have images embedded in them, the report must be in HTML format or XML format. If you are using an XML format, you must have the closing </img> tag. If you are using an HTML format, the closing </img> tag is optional.
Notes:
- You must use the single quotes in this expression because the HTML code is inside a string.
- When inserting images into a PDF report, ensure to include the full path of the image.