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 diff b/w function and action?

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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of how quicktest professional identifies object?

920


What are the various types of Actions in UFT?

1000


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

2050


What is a recovery scenario?

1077


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

2062


How is test case write?

974


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1907


Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?

1999


after initiating one project for testing, when exacltly QTP tester role starts?

1850


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

4443


What is use of object spy?

1027


i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji

2036


Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

1991


How to define array in qtp?

958


What are the different types of checkpoints?

995