Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Ignore Flow Control Steps Unless they have Additional Results?

$
0
0

Occassionally, I use ForEach loops to iterate through some given array, and will sometimes log a number of parameters from each element that gets indexed using the "Additional Results" section of the ForEach step.  However, in general, I don't want to log Flow Control steps, only if they have these additional results.

 

I know how to skip reporting Flow Control steps and I know how to get the number of Additional Results a step has using...

Step.AdditionalResults.<CustomResults | ParameterResults>.Count

...but I can't use this in the results filtering because I don't have access to the "Step" object as the "Results" object is the top one provided in the results filtering.

 

 

I tried getting the parent of "Results" which I thought might be its respective Step as well as using the property "Results.TS.StepId" to get the step using the GetStepByUniqueId method through something along the lines of...

<Client sequence>.GetStepByUniqueId(Results.TS.StepId).AdditionalResults.<CustomResults | ParameterResults>.Count

... however I was unable to get a reference to the top-level client sequence, I think partly due to the results processing occurring in the process model so perhaps my client sequence is no longer loaded by the time execution has progressed to this point?

 

Does anyone have any ideas on how I might filter steps based on whether or not they have additional results assigned?  Thanks.


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>