Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternate way to call resusable action by script
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
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>

Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
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
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
Thanks Ravi.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 852 04-23-2020, 07:08 PM
Last Post: BGunay
  Call Stack in QTP Script smitapawar610 0 1,494 12-03-2018, 10:42 AM
Last Post: smitapawar610
  Is it possible to call Java window and Power Builder Window in 1 Action sbkhbk 0 2,442 06-05-2014, 08:18 PM
Last Post: sbkhbk
  insert call to new action bistritapcv 1 2,456 04-06-2013, 12:09 PM
Last Post: ravi.gajul
  How to stop Second Action Call faheem05 6 3,914 10-05-2012, 11:11 AM
Last Post: faheem05

Forum Jump:


Users browsing this thread: 1 Guest(s)