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

What is the new version of qtp which is recently released in the market?

880


is there any addin for remedy user application

2034


Explain features of the latest version of qtp/ uft 12.1?

849


How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet

1828


How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks

3042


how to do the batch testing in test director using manual testing procedure?

2057


Explain the concept of object repository and how qtp recognises objects?

781


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

4150


What is the difference between a Function and Procedure in QTP?

936


Explain calling sub procedure.

860


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1919


Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji

2523


How you know that a test case is a regression test case

3537


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

968


How does quicktest professional (qtp) identifies the object in the application?

813