02-16-2011 07:50 AM
Hi
I am using a custom loop on Multiple Numeric Limit Test. The SequenceFilePostStepFailure callback is called each time the loop fails and called again when the step fails.
I want to do something (not relevant for this question) when it is looping and something else when the step fails. How do I know the difference? Is there any flag to look for?
I have tried looking at several variables under RunState but haven’t found the right one. Is there one?
02-17-2011 01:55 PM
Kim,
Try Runstate.Caller.Step.Looptype you can compare this to NoLooping. If NoLooping then the step doesn't loop. You can also use Runstate.Caller.Step to get a Step object and then just use the API calls to manipulate it. You can read about it in the TS help. To get the loopindex try: Runstate.Caller.Loopindex.
Both should be ran in the SequenceFilePostStepFailure Callback.
02-17-2011 02:16 PM
In the SequenceFilePostStepFailureCallback you could check:
Parameters.Step.AsStep.CurrentLoopResult == Nothing // requires loop results to not be disabled or it will always be Nothing
or
Runstate.Caller.RunState.LoopIndex == numberOfLoopIterations