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


Please Help Members By Posting Answers For Below Questions

How are actions and functions different in QTP?

863


Explain how Selenium is different from UFT?

896


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1883


Explain different recording modes?

793


What are the types of object repository?

845


how to test Web application using QTP software

1768


Can any suggest me what is exposure testing?

1569


Describe how Smart Identification is used

1916


Can you list some technologies that support qtp?

754


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.

1776


Hi All, How to get repeated word in string . Thanks Balaji

1146


Diff b/w test scenario's and test Procedures?

1858


what are all the fileds present in object repository?

1786


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

1620


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

1592