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 |
What ate the Technologies supported by QTP?
In My application, having Copmany Name : Text Box and click Save button. if i enter a vlue, after run..........it shows the already exists. so how to enter random ro mmultiple names names into webedit box(company Name). without using DATATABLE THanks Ramesh
Suggest and Define a solution for an application whose objects are not recognized by UFT?
How many tabs are available in debug viewer pane?
I want to test advanced Java applications what kind of add- ins I have to install?
How i can test the background color of the records displayed in a Table. Eg i have a .net desktop application and there is a Table(swftable) with records displayed in the grids. i have to validate whether the 1st record is displayed in white background color and 2nd record in light blue background color...But the constraints is that once user click on the first record...the background color changes to grey.......Plze let me now how to validate this with QTP 9.2.
What is meant by Step Generator in Qtp How is it used? pls gimme in detail
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
WHAT IS THE SIZE OF OBJECT REPOSITORY USING IN YOUR COMPANY? Can any body tell me answer of this quation........
How to identify whether a web page exists or not without using Browser(" ").Page(" ").Exist?
Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?
If an application name is changing frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handle?