How can I pass values from one action to another in QTP ?
Answer Posted / 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 |
Post New Answer View All Answers
How are actions and functions different in QTP?
Explain how Selenium is different from UFT?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
Explain different recording modes?
What are the types of object repository?
how to test Web application using QTP software
Can any suggest me what is exposure testing?
Describe how Smart Identification is used
Can you list some technologies that support qtp?
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
Hi All, How to get repeated word in string . Thanks Balaji
Diff b/w test scenario's and test Procedures?
what are all the fileds present in object repository?
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script