NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Compact list of pass/fail sequences in the report

Hi All,

I am having a sequence file with more than 70 Subsequences. The default report has been editing to provide more details. The format requirment in HTML.
 
Now the problem is that client demands a tabular view of all the subsequences as a summry of the report i.e. I have to generate a list of all the subsequnces (that are called directly from MainSequence) along with their serial No. and result.
 
Using the reportgen_html.seq, I managed to generate the table but i m unable to get the values for the sequence, instead i got the values for the individual steps and these are repeated again and again.

Also,

how to get the length of an array parameter......!

Regards,

BiL@L H@iDeR




Message Edited by itsallaboutu007 on 01-22-2008 06:42 AM
0 Kudos
Message 1 of 2
(2,917 Views)

Hello itsallaboutu007,

In regards to your second question, one way to get the length of an array is to use the following method: PropertyObject.GetDimensions (lookupString, options, lowerBounds, upperBounds, numElements, elementType). The numElements variable will return the number of elements in the array, which should correspond to the length of your array, if it is one dimensional.  For further information on the function you can reference the TestStand help file.

I am a little unclear on your first questions though. If you want to retrieve the status of a sequence after execution you can reference RunState.ThisContext.Locals.ResultList[0].TS.SequenceCall.Status where we point to the ResultList for that sequence.  If you want to get the status of a subsequence, via the sequence call from the main sequence, you can use RunState.ThisContext.Locals.ResultList[0].Status, where 0 corresponds to the step number of the sequence call in main.  By default the status of the sequence and the steps contained within should be output to the report, so I wanted your help in clarifying the question.  Did you mean you had trouble getting the html formatting setup correctly to correspond to the results, were you talking about the above mentioned sequence status, or does the problem lie elsewhere?  Thanks in advance for the information.

John B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,878 Views)