QTP/UFT


Difference between Function and Action in QTP?

Action
Function
Its QTP Feature
Its VB Script Feature
Its collection of VB script statements and returns no value
Its collection of VB script statements and returns single value
Action will have its own Datatable,Object Repository
Functions does not have its own datatable,Object Repository
Actions can have multiple output values
Function can have single return value
Actions can/cannot be reusable
Functions are always reusable
Action file extension is .mts
Function file extension is .vbs
Action parameter type are byval
Function parameter type can be either by val or by ref

No comments:

Post a Comment