how do pass parameters from one action to another action

Answers were Sorted based on User's Feedback



how do pass parameters from one action to another action..

Answer / ravi_kanakam

We can pass parameters from one action to another action in
the following three different ways.

1. Datatable
2. Action parameters
3. Environment variables

Is This Answer Correct ?    5 Yes 2 No

how do pass parameters from one action to another action..

Answer / aarati borse

Whatever Ravi has mentioned it is true...
Practically we can do like this..
Here I am using Action Parameters...
REquirement in Flight Reservation Apps is

Name by which user is getting logged in by same name a new
order also should get inserted..

1)Record for login window.
2)Rename the action as login_name
3)Pass the op value in action parameters as "agent_name"
4)By using Getro property fetch the agent name value and
store it in parameter agent name itself.
code willbe
parameter("agent_name")=window("FR").........winedit("Agent
Name").getroproperty"text"
5)save the test.


6)Now record for the insert order in new test
and make changes as follow

Window("FR").winedit("Name").set parameter("agent_name")
7)Make this action reuasable and rename it as insert_name
8)Save all changes in the test.
9)Move to first test again that is in login_name action
10)Keep ur cursor at end and call the existing action i.e
insert_name.
11)In expert view u will get the statement as
RunAction "insert_agent",oneIteration
we need to add as
RunAction "insert_agent",oneIteration ,parameter
("agent_name")
12)save d changes again..

13)now run login_name action

It will work...

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

What are the factors on which script execution time is dependent?

0 Answers  


To which environments does quicktest professional supports?

0 Answers  


What is difference between shared and local object repository?

0 Answers  


why don’t use real time they r not using check points

1 Answers   Wipro,


what is the exact Diff. Between Test and Component in QTP?

1 Answers  






what is the Command used to start the QTp from Run.(start-> Run)

7 Answers   GE,


What is obsolute path and relative path in QTP..? How to access them and what are the differences between them...??

3 Answers   Virtusa,


I am trying to write a descriptive program for clicking on a perticular link.For that i wanted an index or location of that object.But when I viewing through spy, There was no index property of that object.What to do for getting index value.How can I get index? please any one let me know.

5 Answers  


Hi all, i have installed QTP8.2 in my system. but script is not generating while recording. What is the problem? is any file missing? pls let me know anybody...Thnaks

3 Answers  


explain abt dyanamic changing object with example?

0 Answers   Wipro,


What is Distributed testing? How does UFT support it?

0 Answers  


in real time when we are creating the script by default it is going to save in action object repository or not any way my question is in one of my interviewer said that in real time the default object repository is action object repository and by using quick test plus they are going to merge is it correct i said that by selecting the object repository as shared one in selecting the test>>settings>>resources but she is not convinced what is the correct one

1 Answers   DigiTech, Infotech,


Categories