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 functions and actions in

QTP?

Answer Posted / deven

&#9830;It returns single value.
&#9830; we can call functions within actions but we can't call
actions within functions

&#9830; Generally functions are saved with ".vbs" extension
whereas actions will save with ".mts".

&#9830; Every Action will have its own Datatable whereas function
does not.

&#9830; Action can have a object repository associated with it
while a function can't. A function is just lines of code
with
some/none parameters and a single return value while an
action can have more than one output parameters.

&#9830; Action can contain Object Repository, Data table, Active
screen etc. whereas function do not have these features.

&#9830; Action is internal to QTP whereas Function is just lines
of code with some/none parameters and a single return value.

&#9830; Action can/cannot be resuable whereas functions are
always reusable.

&#9830; Action Parameter have default values whereas VB script
functions do not have any default values.

&#9830; Action parameter type are byvalue only where vbscript
functions can be passed byref.

&#9830; Action can have multiple output(returning) values whereas
function can return only single value.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1698


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

2560


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

2145


What is the difference between shared and local object repository?

1063


How to create runtime property for an object?

1927


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

1748


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1918


How can you pass value one action to another action?

1003


How are actions and functions different in QTP?

1025


tell me QTP standards ?plz

1878


When to use descriptive programming?

1068


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1843


Can any body please tell me the steps of keyword driven framework of QTP.

1920


Explain qtp(quick test professional)?

987


Mention the test steps of qtp.

961