NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

InsertElements

Hi,
 
I am trying to do some changes in my test report. Therefore I am doing some changes in the TestReport sequence of SequentialModel.seq. I am changing the ResultList, which could be found at  Parameters.MainSequenceResults.TS.SequenceCall.ResultList........
One think I would like to do, is to delete some Results. This works fine by using the function "RemoveElements". But on the other side I also would like to add some other results. Therefore I used the function  "InsertElements" to insert a new element in the array ResultList. But this new element is empty. How can I create a number or a string in this new element? Normally the ResultList consists of "Error", "Status", "ReportText", "Common", "TS". My new element should also look like this. Or is it possible just to copy an element of an array?
Thanks for your help
 
Daniel
0 Kudos
Message 1 of 2
(3,442 Views)
Daniel,

during runtime of the sequence, information is logged in the memory called "ResultList". this is called "Result Collection".
the report is generated by the process model in the end.
so, here you can already see two methods of customising of the report: modify the result collection or modify the report generation.
modifying the result collection is the best way for ADDING info to the result. there are three ways:
- AddExtraResult method from TestStand API
- add subproperties to Locals.ResultList
- add subproperties to Step.Result
modifying the process model is one way to remove infos from the report.
for further infos please refer to the TestStandReferenceManual delivered with teststand. you can find them in chapter 3 (execution) from page 3-6 to 3-12.

Norbert B.
- NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(3,420 Views)