07-09-2009 05:09 PM
Hi all,
Is there a way to convert a resultlist container to a string? I have a ResultList from a separate test that I need to add to the ModifyBatchReportHeader callback in string format for my ASCII report.
I've tried adding "str(OtherTestResults)" but it just adds periods as if it doesn't know how to access the test data (test name, measurement, etc.). Is there a way to convert this container to a string the way TestStand automagically does at other times?
Thanks,
Chris
Solved! Go to Solution.
07-10-2009 12:35 AM
Hi,
How is it that you have a separate resultlist container?
Why dont you add it to the ResultList container in the top level MainSequence and let the report process take care of it.?
Regards
Ray Farmer
07-10-2009 12:54 AM - edited 07-10-2009 12:58 AM
07-10-2009 09:48 AM - edited 07-10-2009 09:51 AM
Ray and Juergen,
The results are from a sequence that is run during the ProcessSetup callback and therefore isn't included in the report by default. The reason I can't just add the resultList to the one in my Mainsequence and have the report process take care of it is that I'm using the Batch model. I can add these results to the resultList in my MainSequence, but then it includes the results as part of UUT0 and skips it for the rest of the threads (if I use a synchronization of "One thread only").
So what I would like to do is take the results from the ProcessSetup test and add it to my BatchReportHeader, but it takes a string, not a container of results.
Juergen, it looks like your example is pretty bruteforce. I'll give it a shot and see if it works.
Thanks again guys,
Chris
EDIT: Looks like Juergen's method leaves me in the same place as before: the results will be copied into the report, but it will be the UUT0 thread that does it and will include it with the UUT0 results instead of the overall test. Still stuck 😞
07-13-2009 03:56 AM
Hi Chris,
I didn't realized the batch mode unless you said it.
For my example i used the ModifyBatchReportFooter. You can use the Header, too.
You just have to play with the HTML Tags.
This example is only working with HTML-Reports!!
For generation it uses the Sequence: PutResultsInReport from reportgen_html.seq in the NI-model-folder
Hope this helps a bit more
juergen