Micro Focus QTP (UFT) Forums

Full Version: Alternate way to call resusable action by script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
Is it possible to call a resusable action by specifying the location instead of adding through Insert--->Call existing action process? for exmple something like

Call <Location>/<Scriptname,ActionName>

you can use LoadAndRunAction only when the step runs and then run that action
This is useful, for example if you may use many conditional statements that calls external actions and you donot want to load all of the actions, each time you open the test as they many not be necessary during run session.
As far as I know, this feature is available from QTP10.00.
Code:
Syntax:
LoadAndRunAction(TestPath,ActionName,[iteration],[Parameters])

Hope this helps

Regards,
Ravi
Thanks Ravi.