NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Help on Reports

This should be really simple, but for the life of me,I can't figure out how to add text (or anything) to my output report.

If I fail the seqence via a call to a LabView VI which sets a report string, then I see it, but that's all.

What I'm looking for is a simple method, from within teststand 3.0 (as a sequence or function or anything) to add text to a report which is displayed at the end.

All attempts of running the samples which are supposed to sets report strings, all result in no output??

rjmiller
0 Kudos
Message 1 of 5
(3,396 Views)
I had the same question a few days ago...

In your Step variable Properties, change the Step.Result.ReportText properties (right click the variable name and select Properties and Advanced) and add a checkmark to the "PropFlags_IncludeInReport". This will set the variable (globally to all your steps) so that the value of this variable will be entered into the report.

Now just build a string to include in your report:

Step.Result.ReportText = "Actual Value=" & Locals.sActualValue & " Expected=" & Locals.sExpectedValue
0 Kudos
Message 2 of 5
(3,396 Views)
Dumb question here, but where exactly "is" (or what do I click to get there) the Step.Results.ReportText properties?
0 Kudos
Message 3 of 5
(3,396 Views)
Hi RJM,

The easies way is to select your step. Right mouse click and select 'Properties...'.
A Properties Dialogbox will appear. Select the 'Expressions' Tab.
Enter your expression in the Pre or Post Expression edit box.
You can use the Browse button to help you build up your expression from Variables and functions and check the syntax.

Hope this helps
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 5
(3,396 Views)
OK I have it now. One of my major problems was that I inadvertently deleted the "ResultsList" container from my top level sequence chart - doh!

rjmiller
0 Kudos
Message 5 of 5
(3,396 Views)