Hi,
there's two ways to approach this in my humble opinion :
1) you could use a post expression based on the step.result.buttonhit and set the Runstate.SequenceFailed property to true.
(e.g. if the first button was pass and the second button was fail :
Runstate.SequenceFailed = (Step.Result.ButtonHit==2)
This is brute force and if you have the property of the sequence it's in set to "goto cleanup on sequence failure" this doesn't trigger it.
2) Use the status expression of the step and set the Step Failure causes Sequence Failure flag (in the run options of the step)
e.g. in the status expression box :
Step.Result.Buttonhit==1?"Passed":"Failed"
This does trigger the "goto cleanup on sequence failure" and by default you'll also have the result of the step to go into the report so you can see it was that one that caused the failure chain.
Also, if you using TS 4.x, you might want to copy that Message Popup into the templates area so you can re-use it!
Hope that helps
Thanks
Sacha Emery
Systems Engineer (NIUK)
// it takes almost no time to rate an answer