| || |
Difference between Action and Function
Can anyone explain me what is the difference between action and function in QTP.
Re: Difference between Action and Function
In addition to the test objects, methods, and functions supported by the
QuickTest Test Object Model, you can define your own VBScript functions
subroutines, classes, modules, and so forth, and then call them from your
test or component.
If you have large segments of code that you need to use several times in one
test or component or in several different tests or components, you may
want to create a user-defined function in order to make your tests or
components easier to design and to read.
You can define these functions within an individual test or component, or
you can create one or more external VBScript library files containing your
functions, so that you can access them from any test or component.
Whereas an Action is a Script itself, which may or may not be reused in other Scripts. Functions dont have objects stored in the repository whereas Scripts / Actions have.
For further Queries mailto: firstname.lastname@example.org