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 use library files in QTP? how we can call these files in to script?

4 Answers   Virtusa, Wipro,


What is difference b/w AOM,DOM,COM Have u ever is used ny of the models.If so why?

1 Answers   GE,


How to get the run time object property without using GetROProperty

4 Answers  


What is throw Object?

0 Answers  


How do we count the no of mails in Yahoo Inbox for a specified week?

0 Answers  






Can anybody send me the code to get the RO property of the active screen in QTP while running?

9 Answers  


I want to check in the data table(Globalsheet) column exist or not through script .If column not exist only proceeded to next step Pls tell me how to proceeded?

5 Answers   Syntel,


how we can know qtp has used smart identification machanism during the execution.

3 Answers   IBM,


How to Identify broken links in QTP

2 Answers   Ness Technologies,


the question was on what techonlogy u been working on i said VB then he asked me the addin for VB in Qtp?

4 Answers   BirlaSoft,


Write a script to delete the a specific row (say 3rd) in a webtable.

0 Answers  


i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade edit box through script... i told to interviewer, using Ms excel & test easily..but interviwer not happy with that answer?

2 Answers   Accenture,


Categories