04-22-2015 03:26 AM
Hi,
I need quick help:
At the end of the sub-sequence in the CleanUp section I'd like to check has this sub-sequence passed or failed?
How to do this?
K.
Solved! Go to Solution.
04-22-2015 07:57 AM
Hi,
One of the way to do it :
Changes in the test sequence :
Add engine callback - "SequenceFilePostStepFailure" to your test sequence.
Create a passfail flag in fileglobals.
In the engine callback put a statement which sets the flag to True.
For the sub sequence do the following :
In setup set this flag to false
In the cleanup check if this flag is true
This flag will be true only if any of the steps failed in the sub sequence
Hope this helps.
Ravi
04-22-2015 08:07 AM - edited 04-22-2015 08:08 AM
Can't I not use something what is already built-in in API?
Maybe there is Something under RunState... API menu?
04-22-2015 09:56 AM
I think you are looking for Rustate.SequenceFailed.
04-24-2015 09:55 AM
That's it!
Thanks