Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to call function lib at run time from an action
#2
Not Solved
Hi Anil,

First of all, I would like to know why you want to call a Function Library. As far as I know, Libraries are not meant to be called, rather it are meant to be attached to the test and the Functions inside the library are to be called.

So you can attach the Function Library(.qfl file) to your test prior to test run.You can anyway call any function inside the library from your script.

For attaching library files during run time you can try the following code:

Quote:Set qApp = CreateObject("QuickTest.Application")
qApp.Test.Settings.Resources.Libraries.Add(LibraryPath,Position)
Please let me know..
Reply


Messages In This Thread
RE: How to call function lib at run time from an action - by PrabhatN - 09-02-2010, 12:48 PM

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 969 04-23-2020, 07:08 PM
Last Post: BGunay
  QTP not recogonising object during run time Lavanya N 2 3,723 10-28-2015, 12:46 PM
Last Post: vinod123
  Writing to Run time data table Neetha 5 12,163 08-27-2015, 10:18 AM
Last Post: supputuri
  Calling a function in a Test Script from a function library anupam4j 3 6,114 06-26-2015, 12:31 AM
Last Post: babu123
  Not able to call the function kathirvelnagaraj 1 2,603 01-06-2015, 07:24 PM
Last Post: kathirvelnagaraj

Forum Jump:


Users browsing this thread: 2 Guest(s)