In my test I have three actions Action1,Action2 and Action3.Action3 is the last action to be called and either Action1 or Action2 will precede Action3,depending upon which action precedes Action 3 certain steps need to be added or removed in Action3.How can Action3 know which action preceded it?
Re: Dependent Action
i don't think there is a way to know what exactly action was replayed before the action that 's being ran (do i correctly understand the "precede" condition).
you could build the test logic so that a global variable would change depending upon which action preceded the Action 3 and pass the value into the Action 3 using action parameters.
Depending upon the action parameter value you could create a simple logic that would allow you to replay or ignore some certain steps (according to you "certain steps need to be added or removed in Action3"), for example
if parameter(precededAction) = 1 then
' the steps that should be ran
' the steps that should be ignored