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 you can replace string in qtp?

1005


what is clean sweep?

2223


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

989


What is test object model in quicktest professional?

1037


iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com

1790


Tell me about your project? please help me how to tell about insurance project

1938


What is the basic concept of quicktest professional?

982


What is quicktest professional (qtp)?

967


How to interact tool & application build in QTP?

1881


By using QTP can we record any log files written by the application which is in execution?

1883


What is meant by Output Value in UFT?

1082


how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!

2116


Mention the different actions types of qtp.

971


What are test settings and global settings?

1028


I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

1982