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

How does qtp identify objects in the application?

579


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))

1494


In qtp, explain what is crypt object

590


wht type of User defined functions or Java Releated functions do we write in VB scripting

1818


How do you know the location Id of an object if you know its index id?

579






What is difference between design time and run time data table?

579


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1532


How to analyzing test results using quicktest professional (qtp)?

576


What is a recovery scenario?

567


What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2260


How to check which add-ins are associated with a test in qtp?

578


In qtp is it possible to check broken links of a page?

574


wht is Manual Testing Frame work. Pls anybody can give appropriate answers

1585


Can anybody post some real time scenario in qtp? please its very urgent.

1799


what is the hierarchy to use properties in descriptive programming

1492