Thursday, 21 July 2011

What is Difference between Action and Function?

1. Action is a specific to QTP while functions are a generic thing which is a feature of VB Scripting.
2. Action have a object repository, Data table etc associated with it while a function can't. 
3. A function is just lines of code with some/none parameters and a single return value while 
    an action can have more than one input/output parameters.
4. Inside of Action we can declare lot of Function , incase Function can’t declare more Action

No comments:

Post a Comment