Posts: 3
Threads: 1
Joined: Oct 2012
Reputation:
0
10-04-2012, 10:10 AM
Hi,
In My script I have two Actions say:
Action1
Action2
By default both the action code executes as we run the script. But I dont want to run the Action2 based on some condition I am checking in Action1.
Could we do that.. Please help..
Thanks In Advance.
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
10-04-2012, 02:06 PM
Hi,
Use if statement and if ur condition meets then go for LoadAndRunAction statement.
Regards,
Sankalp
Posts: 3
Threads: 1
Joined: Oct 2012
Reputation:
0
10-04-2012, 05:53 PM
Thank for reply..
I am using the IF condition for running Action2 but my problem is at the end to Action 1 execution automatically it switches to Action2 execution which I dont want it...
let me know how can i stop this execution..
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
10-04-2012, 06:09 PM
Hi,
Are you calling action 2 from Action 1 or these 2 actions are called independently from one driver script?
Regards,
Sankalp
Posts: 23
Threads: 10
Joined: Dec 2009
Reputation:
0
10-05-2012, 04:41 AM
hi, make your action 2 a resuasable aciton, then delete it from test flow. so still see action 2 from resources and can call from your if.... call action 2
Posts: 3
Threads: 1
Joined: Oct 2012
Reputation:
0
10-05-2012, 11:11 AM
Hi, Thanks alot..
after deleting from Test Flow it works as I was expecting..
regards,
Faheem