Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling an action in the same script in QTP
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi Galstar,

You could set the navigation of flow of an actions in KeyWord View

Lets consider this as the example

1) You have 3 actions Action1,Action2,Action3

But you want to run the Action2,Action1,Action3 i.e in the order of 2,1,3

So please drag the actions and drop in this manner like first keep the Action2 as the first one and Action1 and Action3 as the last action.

Incase if you want to execute the actions in the order liek 2,1,3,1,2

2) Proceed with the above step mentioned then go to Expert View then script appears like
Code:
RunAction "Action2","One Iteration"
RunAction "Action1","One Iteration"
RunAction "Action3","One Iteration"

Then Insert the "Action1" as Copy of an action then script appears like
Code:
RunAction "Action2","One Iteration"
RunAction "Action1","One Iteration"
RunAction "Action3","One Iteration"
RunAction "Copy of Action1","One Iteration"
Then Insert the "Action2" as Copy of an action then script appears like
Code:
RunAction "Action2","One Iteration"
RunAction "Action1","One Iteration"
RunAction "Action3","One Iteration"
RunAction "Copy of Action1","One Iteration"
RunAction "Copy of Action2","One Iteration"
Please let me know for further clarification.

Thanks and Regards,

Venkat.Batchu.
Reply


Messages In This Thread
RE: Calling an action in the same script in QTP - by venkatbatchu - 08-19-2010, 09:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 6,180 06-26-2015, 12:31 AM
Last Post: babu123
  Calling a HP Service Test Skript Gandalf2005 0 2,155 09-05-2012, 07:53 PM
Last Post: Gandalf2005
  how to access Local dataTables in another action within a same script RA185112 5 6,086 07-25-2012, 01:27 PM
Last Post: sshukla12
  Calling of function hamzaz 5 4,624 07-25-2012, 12:44 PM
Last Post: Shridevi.Salagare
  Function Calling after executing some steps TaranVohra 2 3,024 06-05-2012, 10:06 AM
Last Post: TaranVohra

Forum Jump:


Users browsing this thread: 6 Guest(s)