How can I pass values from one action to another in QTP ?

Answers were Sorted based on User's Feedback



How can I pass values from one action to another in QTP ?..

Answer / riju

Define a parameter variable in the action(eg: Action2) to
which the value is to be passed into.(that can be done by
right cliking on that particular action --> Action -->
Action Properties --> Parameter(tab) --> '+' button on input
parameters and give the parameter name(eg: i)

and in the code, ie. in Action1

i = 10
RunAction "Action2", oneIteration,i

and in Action2

b = Parameter("i")
msgbox b

Is This Answer Correct ?    19 Yes 3 No

How can I pass values from one action to another in QTP ?..

Answer / deepa

Through action input parameter

Is This Answer Correct ?    9 Yes 2 No

How can I pass values from one action to another in QTP ?..

Answer / sanju_gdk

using parameter u can pass the values with out using action
finction

action1
Parameter("variable")= outputvalue

action2
x=parameter("Variable")

Is This Answer Correct ?    9 Yes 3 No

How can I pass values from one action to another in QTP ?..

Answer / preeti

Data can be passed from one action to another using the
various techniques like:
1. Global Data Table.
2. Dictionary Object.
3. Environment variables.

Is This Answer Correct ?    8 Yes 3 No

How can I pass values from one action to another in QTP ?..

Answer / kcn

U can use define a variable as Enviornmental Variable and
use the same varible in different actions.

Is This Answer Correct ?    4 Yes 3 No

How can I pass values from one action to another in QTP ?..

Answer / hanumanth

u can pass the value from one action to another by

Environmet variable
input and output parametrs
output value

Is This Answer Correct ?    2 Yes 4 No

How can I pass values from one action to another in QTP ?..

Answer / raju

Through input & out put parameterzation......

I thkink If it is wrong pls let me know

09823257761

Is This Answer Correct ?    4 Yes 8 No

How can I pass values from one action to another in QTP ?..

Answer / turtlerock

Can we pass object as input parameter using the above
methods.

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More QTP Interview Questions

Sometimes my QTP scripts works fine and sometimes its not though I am using same shared Repository and am not doing any changes in it.Even though for descriptive programming also its works fine and sometimes it does not work.my application is pretty stable.Could anyone please answer why am facing these types of issue??

1 Answers  


w is configaration management

3 Answers   TCS,


could any help me please, how to work on visual foxpro application using UFT

0 Answers   NA,


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

0 Answers   IBM,


What is qtpro? What is quick test pro?

0 Answers  


What expansion of "MIC" in MICPASS (TEST ReportPAGE)

11 Answers   TCS,


HOw to add the recovery file at runtime to the test file .

0 Answers  


i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me

2 Answers  


hi friends can any one provide me the project in qtp because i have to attend to interview within one week atleast you provide the website address which provide the qtp projects

2 Answers  


Can anyone explain me about child objects in detail;when they are used and why do we need them ? please give me sample code for this if possible.

1 Answers   Virtusa,


What are the challenges u faced in testing with crm domain? How u overcome with?

0 Answers  


Read excel using qtp descriptive programing

2 Answers   TCS,


Categories