08-26-2010 03:50 AM
Hi,
I want to reach a subsequence programatically. I used CSharp just in order to get the step results, not to create an execution. I am starting my execution in TestStand. And in clean-up step group, I added an "Action" step to collect results, which will be used in another platform, from TestStand.
For this purpose, I wrote the following code:
Solved! Go to Solution.
08-27-2010 03:35 PM
Hi Ebru,
Subsequence results are actually stored in their own resultlist container within TS.Sequencecall, which is accessible through the following statement:
Locals.ResultList[step].TS.SequenceCall.ResultList
where step is the index of the sequence call step. This resultlist is structured in the same way as the main resultList array. You can also access your subsequence directly from the sequence file container if it is in the same sequence file as the main sequence. Navigate to this reference using the following:
RunState.SequenceFile.Data.Seq[sequenceName]
Using this reference, you can access the containers for each step's result container.
Hope this helps!
08-31-2010 03:04 AM
Hi again,
After typing this message, I realized that I had forgotten to add my subsequence to Sequences pane (I expected that just using Sequence Call was enough).
Thanks for the reply.
Ebru