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

write a vb script to print even numbers from 1-50?

6 Answers   Kclink Technologies, Logica CMG,


what are the limitations of automation testing?

2 Answers   TCS,


How can you delete the results file (XML)

2 Answers  


what is Function Definition Generator? can any one explain me in details?

6 Answers   Accenture,


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.

0 Answers  






Hi experts. I want to create a framework for the Flight Reservation sample application.Can anybody tell me the files and the contents , and how to create them.Thanks

2 Answers   IBM,


What is QTP scenario.

0 Answers   Persistent,


what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

0 Answers   Value Labs,


how to get the object count ?????????

8 Answers  


how to merge object repositories?

5 Answers  


write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script

0 Answers  


Hi Recently I Attend one interview .The intervier ask on Question in QC 9.2 . The Qus was while ruuning the Batch RUNS scripts in test lab if defect will comes .The defect automaticly wants to genate . How to Configure in QC . Thank You Balaji

0 Answers  


Categories