NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I put out Result.ReportText only on a Failure

When a step fails I want to put some text out into the report with a failure path. I added the Callback "SequenceFilePostStepFailure" and added a function statement "Parameters.Step.Result.ReportText = FileGlobals.msgText" but my text doesn't get into the output.

 

What's going wrong? Am I useing the wrong callback? doe the paramenters not really put data out to the report? what do I need to do to get the information out?

 

TestStand 4.2

"Lockheed" Joe
Testing Blog"
0 Kudos
Message 1 of 3
(3,496 Views)

Hi Joe,

 

I'm not sure why this is not working for you. I tried what you have said. It worked fine for me. I'm attaching the sequence that I tried. 

 

Thanks 

0 Kudos
Message 2 of 3
(3,486 Views)

Thanks for the help, I figure out the problem, not the solution.

 

I was putting text into my FileGlobals.msgText as a parameter passed back through a return parameter in the same step that was failing and no data was showing up in it. When I put text (as a test) in FileGlobals.msgText the step prior to the failing step, the text get's into the FileGlobals and the text gets to the report.

 

I also tried putting data into the FileGlobals.msgText as a pre-expression and the data didn't get out there.

 

So the problem becomes, if the callback happens on a failure step failure, why aren't the FileGlobals being updated in that step?

 

I'll ask the NI people. But I have some ideas to try.

 

Thanks for your help.

 

 

"Lockheed" Joe
Testing Blog"
0 Kudos
Message 3 of 3
(3,474 Views)