NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the correct expression for accessing the data in the Requirements field of a sequence step?

I would like to include the data that is contained in the Requirements field of a sequence step in the final test report but can not seem to compile the correct expression. Does anyone know the expression that is needed to add this information in the reportgen_txt.seq?
 
Many thanks.
0 Kudos
Message 1 of 2
(2,738 Views)
Hi,
 
I had attacted a small example TS3.5.
In the Sequence File is a step that calls a TS API which addes the Step.TS.Requirements property to the Step Results as an extra result.
 
In the ReportGen_txt.seq, in the sequence PutOneResultInReport I have added a step which addes the Property to the Report. (Now I have cheated a bit because Requirements.Links is actually an array but I have assumed its only one element.)
I do check in the preconditions that the Property Requirements.Links exists and that the array is not empty.
 
All you need to do is get the size of the array then loop the step n times to add all the Requirements.
 
Hope this helps.
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,734 Views)