Micro Focus QTP (UFT) Forums
Calling Action using code? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Calling Action using code? (/Thread-Calling-Action-using-code)



Calling Action using code? - riteshgpt - 04-13-2010

Hi,

How we can call action using VB Script?
is there any workaround?

Is there any way custome function for Invoking/Calling Action?

any sample code will be appriciated.
Thanks for response.


RE: Calling Action using code? - tester_rahul - 04-14-2010

Just an extract from the QTP help file:

The following example calls the SearchFlight action, and runs all iterations of the action.

RunAction "SearchFlight", allIterations

The following example performs the same call as the previous example, but runs only one iteration of the action and saves the returned value to the AxnVal variable.

AxnVal=RunAction ("SearchFlight", oneIteration)

Let me know if it helps.