05-16-2017 11:20 AM
Hi,
How do I set the SequenceFilePostStepFailure precondition event to trigger only on Numeric Limit Tests?
Thanks
Curt
05-17-2017 02:56 AM
Curt,
the precondition for the callback is the condition labeled in the name of the callback. In your example, the "precondition" or "trigger" (or whatever you want to call it) is Post Step Failure.
It will execute for every step which results in a fail.
The recommended way to work only on specific step types (e.g. numeric limit test) is to implement a if (or select-case) clause which queries the step type. As you do get the step as parameter, it's quite simple to do. Implement the step type specific code in the appropriate case.
05-17-2017 05:42 AM
Incase anybody is interested, in the 'Precondition Expression' of an Action step (or any step type) in the Main section of the 'SequenceFilePostStepFailure' callback use the statement
TypeOf(Parameters.Step) == "NumericLimitTest"
Curt