01-22-2008 06:36 AM - edited 01-22-2008 06:42 AM
01-23-2008 05:58 PM
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.