08-08-2022 08:17 AM
Hello,
in my sequence i need to know how many steps are failed over over the wall number of Test Steps. So, if the step is Pass/Fail Test, Numeric Limit Test, Multiple Numeric Limit Test or String value Test and its failed I need to increase a counter. Obviously independently from the adapters used for the step. I have thought two ways but I can make the last step to finish one or another:
So anyone have any ideas to help me?
Thank you for your attention and thank you for reading this post!
Best Regards,
Zuc
08-08-2022 02:49 PM
I would go with option 1:
Use the expression: TypeOf(Parameters.Step) in the SequenceFilePostStepFailure callback. This will return a string (PassFail or NumericLimit) that describes the step type and then you can filter out SequenceCall steps from your Failure Count.
It sounds like you have the counting down but you could just use a FileGlobal in the callback to keep track of the total # of failed steps.
PH