07-23-2015 12:39 PM
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.
07-27-2015 01:10 PM - last edited on 10-25-2024 04:47 PM by Content Cleaner
Hi, you can try maybe using this method described in the link.
It allows you to go in and make certain steps have conditional reporting, which it what it sounds like you are trying to accomplish. Post back here if you have any troubles with this.
Paul C
07-27-2015 02:42 PM
Another option is to use the SequenceFilePostStepResultListEntry callback and put some filtering code in there. Remove it from the ResultList if you don't want it.
That way it never makes it to the report and you don't have to worry about it there.
Regards,