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 interviewer asked about the framework used for automation how we will handle the question..means what should be the answer..plz help..which framework u r used in our company?
Tell me the situations where we will use Data Driven?
In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?
How to break the object spy ?
I have the following Doubts Please clarify me with examples? 1.Could QTP cover entire application? or part of the application? 2.Shall we rewrite(modify) the Manual testcase to automate? 3.How can I execute my scripts through client mechine which is not having QTP installation 4.Few objects are not being identified by QTP afeter one month. what could be the reason for this (I am using trail version of 15 days)
Could some one explain me how to create folder on the desktop from QTP?? This is an interview question
Which Databases supports for QTP?
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
Is it possible to check the Run time value property of a field through a Database Checkpoint ? Further, is it possible to localize and mention a particular cell , in the database dynamically. My requirement is that I would need to check the status of a particular field , that would change from an "Active" state to a "Stopped" state dynamically.
What are the types of properties that quick test learns while recording?
What r the diffrernt file extentions in QTP?
How to do call a output parameter from one action to another action??/