NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Image not shown in teststand report

I want to display image in teststand report. Image is .jpeg image and it is image of graph I want to put in report.

I'm using this sentence to put it in report:

 

Step.Result.ReportText = "<IMG ALT='My Picture' src='" + Parameters.imgLocation +"''></IMG>"

 

where Parameters.imgLocation is path to my image i want to show.

 

The image then is not displayed in report but instead only html code is there:

 
 
 

Capture.PNG

 

what I'm doing wrong

0 Kudos
Message 1 of 10
(3,994 Views)

Copying and pasting the line you've given into my own teststand sequence works great.

 

I'm confused by two things.

 

1. You mention the image is a .jpeg image, but your path in the html code is a .gif image.

 

2. Looking at your report it looks like you are making an Additional Data for the step called "Image:" and not actually setting Step.Result.ReportText. Just as an example of what mine looks like: So where exactly do you have the expression Step.Result.ReportText = ... placed? It might be helpful if you could post your sequence, even if you just make a dummy sequence with only that step.

ShockHouse_0-1589380773891.png

 

0 Kudos
Message 2 of 10
(3,967 Views)

Capture.PNG

 

.gif image is in folder the same as sequence

0 Kudos
Message 3 of 10
(3,945 Views)

Looking at your step, and looking at your report, they aren't the same step. Can you just attach that single step as a sequence? Or did you modify the report plugin?

 

Even if I use relative paths like in your second example it's working perfectly for me.

 

As an example. I've attached a working sequence. Run this and let me know if it puts the image on the report for you.

 

0 Kudos
Message 4 of 10
(3,941 Views)

If I use your Demo.seq, the image is stil NOT SHOWN in report...What can be wrong?

0 Kudos
Message 5 of 10
(3,905 Views)

What report are you using?

0 Kudos
Message 6 of 10
(3,896 Views)

AndrazS_0-1589516752183.png

 

0 Kudos
Message 7 of 10
(3,880 Views)

I have the same issue.

 

grafik.png

 

I used the Demo.zip from above.

I tried all Report Formats. My standard is:

grafik.png

System information:

Andreas1000_0-1610375801542.png

 

0 Kudos
Message 8 of 10
(3,467 Views)

I found a solution. I have to add the full path (also when the picture is in the same folder as the .seq file). And the path must have "/" instead of the Windows style "\":

Andreas1000_1-1610722809964.png

 

 

0 Kudos
Message 9 of 10
(3,433 Views)

When using these expressions, why does TestStand version 2020 64-bit work and 2020 32-bit does NOT work when trying to append images to ATML files?

 

Images are applied correctly to the Report in TestStand 32-bit if the report type is XML.

 

If using 32-bit with report type ATML 2.02, 5.00, and 6.01 images do not get appended to the report no matter what style sheet is selected.

 

Again, everything seems fine in TestStand 2020 64-bit but not in TS 2020 32-bit.

 

Why?

0 Kudos
Message 10 of 10
(698 Views)