what is the difference between action and function
Answer Posted / sailaja
Few of the key differences between reusable actions and
functions here.
Passing Data
Actions - can only accept primative data types as
parameters (strings, integers, etc)
Functions - can accept arrays, dictionary objects and test
objects (i.e. Pages, Frames, WebRadioGroups, etc.)
Resource Usage
Actions - For each action, there’s a folder, three separate
vbs files, a local Object Repository, a subfolder
containing snapshots, an Excel spreadsheet, and a few
seconds of load time.
Functions - There’s the code contained in the Function, and
that’s all
API
Actions - You cannot insert calls to Existing Actions
through the QTP API, you can only do it through the
interface
Functions - You can attach Function Libraries to Test
Scripts through the QTP API
Return Values
Actions - Return values are difficult to understand and
read in the syntax
Functions - Return values work like they do in other
languages (i.e. as lvalues)
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
How to save your test using quicktest professional?
explain abt dyanamic changing object with example?
What are the trigger events in qtp?
In Remote acess server how u run a test?
how to idetfy which test cases are automated?who will deside that plz tell me
How to define array in qtp?
What is method name to compare two XML files.
Who uses qtp tool?
In what occasion we can specify global sheet and action sheet?
In qtp is it possible to check broken links of a page?
What is text/text area checkpoint?
Did the scripts need lot of maintenance? If yes, why?
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
Generic function to search for the unique link in webtable and click on it
Difference between copy to action and call to action?