What is the difference between Functions and Action ?

Answer Posted / anshuman

functions are encapsulation of segments of code which is
used several times in the script.They can be either within
the QTP script or can be maintained in external .VBS or .TXT
files.

Action is a thing specific to QTP while functions are a
generic thing which is a feature of VB Scripting. 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.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1459


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

2794


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

2657


Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.

1512


What is the parameterization?

573






How to connect to a database?

575


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3437


How to use setroproperty?

565


Hi,All How to create a link in excel sheet using qtp

2995


What are the flaws in water fall model and how to overcome it?

557


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2095


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1478


if mandatory and Assitive propertys are shows same how will u write skript in QTP window

1616


What are the features of quick test pro(qtp)?

526


What are the advantages of parameterization ?

590