Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

i can done the project with QTP in that time i can say how many members in my team size?

1867


Does QTP record on Objects created on XWindows Environment?

2135


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

2182


in a web page How to check and display a particular word from a paragraph?

2430


when will you do debug your script? and explain that process?

1886


What is output value? How many types of output values are there in qtp?

966


What are the advantages of Object Repository?

1025


why you have standardized functions? plzzz guys with real time exp. do answer

1798


What are the features supported by UFT?

1027


Explain QTP using different development techniques ?

862


How can you close the second opened browser?

1333


What is the basic concept of qtp?

961


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?

1873


What are the two types of repositories available, explain them?

967


How to capture all the data of a webtable, weblist and combolist using QTP?

3280