NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to add comments to the report

Hello,
Is it possible to add own comments to the report due to make it easier to localize errors.
How can I do this?
regards samuel
 
0 Kudos
Message 1 of 4
(3,153 Views)
You can add comments to a test step by changing Step.Result.ReportText.  This shows up in the report as:


Begin Sequence: MainSequence
(C:\Program Files\National Instruments\TestStand 3.1\PlugInDemo\OptionSequence2.seq)
Step Status Measurement Units Limits
Low Limit High Limit Comparison Type
OptionSequence2 Passed          
   Report Text: This is a comment
End Sequence: MainSequence

----
I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
0 Kudos
Message 2 of 4
(3,150 Views)

Hi,

I was just wondering that if anyone would know how to make this expression to work with numeric limit test.

Example:

On pass = no report text

On fail = some informative text

I did get this working with pass/fail test but not in numeric test

 

0 Kudos
Message 3 of 4
(3,035 Views)

Hi,

You would have to perform the limit checking earlier to be able to set the reporttext. maybe in the post expression and something like this:

(

CheckLimits(Step.DataSource == "Step.Result.Numeric" ? Step.Result.Numeric : (Step.Result.Numeric = Evaluate(Step.DataSource)), step.limits.high, step.limits.low, Step.comp)=="Passed")?( Step.Result.ReportText="New Text"😞 (Step.Result.ReportText="Old Text")

The problem with this is you are checking the result twice. 

You could try using the Callback "SequenceFilePostStepFailure". Then you could use and expression step and set the step result reporttext as such.

Parameters.Step.Result.ReportText = "This test failed"

The problem with this is it affects every step, but its probably the way to go.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,010 Views)