NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I put test step comments into the test report?

How do I get the comment for a test step into the test report? I see that the sequence documentation tool and the LabVIEW GUI are able to retrieve this info, but I cannot figure out how to extract it for the test report. I've gone over the API and don't see a function to read it, and I haven't found it in the sequence context at any point during sequence execution.
0 Kudos
Message 1 of 8
(3,943 Views)
I found an example here and modified it to generate this attached example.
To get this in the report you can write it to the Step.Result.ReportText property
Hope this is what you are looking for...
 

Message Edited by paulmw on 02-08-2007 01:17 PM

0 Kudos
Message 2 of 8
(3,926 Views)
I think that's a step closer. I still need to figure out how to get the comment into the report, but I think I know a way to use your method to make it happen.
 
Thanks!
0 Kudos
Message 3 of 8
(3,921 Views)

Try this...

It is a slightly different sequence with the same name...

Message Edited by paulmw on 02-08-2007 01:25 PM

0 Kudos
Message 4 of 8
(3,920 Views)
That's pretty much what I was thinking, but placed in one of the callbacks so it could be called for each sequence step when the report is generated. I think this will get me going, I sure appreciate the follow up Smiley Happy
0 Kudos
Message 5 of 8
(3,913 Views)
You could also build this functionality into your code modules (VIs for example).  That way your sequence would look cleaner.
0 Kudos
Message 6 of 8
(3,909 Views)

If you have LabView try this...

Message Edited by paulmw on 02-08-2007 01:41 PM

Download All
0 Kudos
Message 7 of 8
(3,907 Views)
That would work well. I currently do a lot of TestStand manipulation in LabVIEW so it would be easy to add. My other thought was to add it to the ModifyReportEntry callback where I should be able to access the identifier for each test step as the report is generated. This would allow me to modify the report string as it is being built.

Message Edited by lars on 02-08-2007 01:49 PM

0 Kudos
Message 8 of 8
(3,898 Views)