What is the difference between Functions and Action ?



What is the difference between Functions and Action ?..

Answer / 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

More QTP Interview Questions

How to create an Action Template?

1 Answers  


what is delay in QTP?

2 Answers  


What is a Patch in QTP?

0 Answers  


hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

0 Answers   Excel,


How did you achieve reusability via QTP?

1 Answers  


QTP Data Table Having 10 records with 10 to 15 fields(lets say).now i want to get alternative records from datatable.pls can any one answer it?

3 Answers   Syntel,


hi radhaka plz tell me clearly to handle the earrors with out isng recovery scnerio this is sreenivas from delhi

2 Answers  


How can i get QTP 9.2 software or any webside where i can download ? can anyone help me out , i want to be expert in QTP ,but i don't have the software

3 Answers  


How to export quicktest professional results to an .xls file?

0 Answers  


How can we disable smart identification at the time of recording? Ideally, smart identification should be enabled only at the run-time.

3 Answers  


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

0 Answers  


Explain the concept of how QTP identifies object.

5 Answers   Ordain Solutions,


Categories