Saturday, December 25, 2010

QTP Tip | Include Action In a Function

Question: Is there any way we use Reusable Actions in a specific function located in the function library?

Answer: Yes it is possible. You can insert the RunAction or LoadAndRunAction (QTP 10 or higher versions) statement inside your function.

The following code will illustrate the concept:

###############################################################

'Library
Function Test()
RunAction "My Action", oneIteration
End Function

'Action or Library
Call Test

0 comments: