How can I pass values from one action to another in QTP ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
Answer / turtlerock
Can we pass object as input parameter using the above
methods.
| Is This Answer Correct ? | 1 Yes | 6 No |
If i entered 2 columns and 4 rows inputs in DDT Like Mango fruit, Banana Fruit, Brinjal Veget, Carrot Veget.. . My Q is How to get the 2nd column value for corresponding 1 column input in 3rd row ie, ( i need to get "veget" in messge box @ run time
1. How to capture data from images in QTP and produce them in Excel sheet
we have one text box and one list box(list box appear in same page or another page) what ever the text enter in text box that must be displyed in list box as first one. for example if we enter 10 in text box that is the 1st item in list box . after that we enter 11 then 11 is the 1st item and 10 is 2nd item. the maximum limit of list box is 10 items. if we enter 11th item the 10th item is deleted and llth one is add as 1st one and 9th one goes to 10th position part2:maore than the answer for this question i want the the reason why testers go for this kind of risk.what is the use of we testers having these kind of attempts.is that not the problem with the developer .pls answer .real time users of tools.in which way these solutions help to test with r without affecting the developed souce code.
What are the types of object repositories? Which one is you using?
wht is Driver in Integration testing. Anubody can answers it
what is the difference between parameters and arguments?
How to make arguments optional in a function?
whaht is the difference between CLASS & OBJECT?
Explain calling sub procedure.
How to associate function library at a run time?
what is difference betweem class annd object?
What are the versions of qtp,What are the differences b/n them?