Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternate way to call resusable action by script
12-06-2011, 02:44 AM
Post: #1
Alternate way to call resusable action by script

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>
Find all posts by this user
Quote this message in a reply
12-06-2011, 12:55 PM (This post was last modified: 12-06-2011 12:56 PM by ravi.gajul.)
Post: #2
RE: Alternate way to call resusable action by script
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
Find all posts by this user
Quote this message in a reply
12-07-2011, 09:32 PM (This post was last modified: 12-08-2011 03:57 AM by hari1024.)
Post: #3
RE: Alternate way to call resusable action by script
Thanks Ravi.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  action status in QTP test - main action vanilla 1 337 02-12-2012 10:59 PM
Last Post: rajpes
  Is there any mapping between script and reusable action. TurtleRock 2 495 12-20-2011 09:56 AM
Last Post: Sathiya
  How to call the reusable action in a test after updates sram24 1 635 10-27-2011 07:51 PM
Last Post: ravi.gajul
  How to call Action sudhirzpatil 5 1,156 08-27-2011 11:50 PM
Last Post: Forrest Gump
  Issue during call to the copy of action Shama Ahsan 4 1,086 04-13-2011 06:18 PM
Last Post: Shama Ahsan

Forum Jump:


User(s) browsing this thread: 1 Guest(s)