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
i can done the project with QTP in that time i can say how many members in my team size?
Does QTP record on Objects created on XWindows Environment?
Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance
in a web page How to check and display a particular word from a paragraph?
when will you do debug your script? and explain that process?
What is output value? How many types of output values are there in qtp?
What are the advantages of Object Repository?
why you have standardized functions? plzzz guys with real time exp. do answer
What are the features supported by UFT?
Explain QTP using different development techniques ?
How can you close the second opened browser?
What is the basic concept of qtp?
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
What are the two types of repositories available, explain them?
How to capture all the data of a webtable, weblist and combolist using QTP?