How to pass parameters into an action.Please explain me
with examples

Answer Posted / pk

First you have to declare the Input/Output Parameters in the
Action Properties (Right click action icon and select). Then
you can access these parameters through the Parameter object.

Say you have declared two Input parameters
a (as number, value= 25) and
b ( as number, value = 30)

Then you can access these Action input parameter with in the
action using

c = parameter("a")+parameter("b")
msgbox c (should display 55)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1820


When to use shared and local object repository?

731


What is an expert view and keyword view?

663


What are the views available in quicktest professional?

645


how can i pass a "cript"as a parameter in to a function

1543






explain structured testing? plz guys with exp. do answer

1512


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

1467


Is the qtp course will help to create a virtual object?

1612


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

1703


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1965


Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance

1592


I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

1678


what is stepin & stepout?

1508


Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!

1840


What are the types of object repositories? Which one is you using?

718