I am relatively new to automation and we are trying to build our automation framework in a way that will allow multiple people to create/maintain/execute tests while minimizing maintenance overhead. To accomplish this we are using a common Object Repository and creating smaller Actions that can be reused in various Scripts. This way we only have one place to go (the Action) to make updates.
Someone now has suggested we use Functions instead of Actions. I cannot find any documentation explaining the differences between these two. Can you tell me what the difference is between a Function and an Action? And explain the relationship that exists between the two?
Re: Explain difference between Actions and Functions
Someone said the following, "Action is a thing specific to QTP while functions are a generic thing that 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." I agree with it.