NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert resultlist container to string for report

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(4,720 Views)

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

Regards
Ray Farmer
Message 2 of 5
(4,711 Views)

Hi Chris,

 

Checkout this simple example

 

Hope this helps

 

juergen

 

 

EDIT:

While I was hacking example Ray gave the same anwser!

Cheers Ray!

 

 

 

 

Message Edited by j_dodek on 07-10-2009 12:58 AM
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 5
(4,710 Views)

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 😞

Message Edited by Tomahawk1277 on 07-10-2009 09:51 AM
0 Kudos
Message 4 of 5
(4,696 Views)
Solution
Accepted by topic author Tomahawk1277

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

 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 5 of 5
(4,675 Views)