Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
call function from another library
08-19-2010, 12:20 AM
Post: #1
call function from another library

Need to call function from another function (locates not at the same lib)

example:

Lib1:
function func1
' something here
end function


Lib2
function func2
' some code here
func1 ' call to the function from another lib
end function

==============

The call to func1 or func2 can be done without problem from any Action of QTP test.

Any ideas?

Thanks
Find all posts by this user
Quote this message in a reply
08-19-2010, 11:46 AM
Post: #2
RE: call function from another library
Check whether ExecuteFile statement is working or not?
Find all posts by this user
Quote this message in a reply
08-19-2010, 06:43 PM
Post: #3
RE: call function from another library
(08-19-2010 11:46 AM)guin.anirban Wrote:  Check whether ExecuteFile statement is working or not?

ExecuteFile good when library not defined for the test. At my case - I added lib to the test's resources, because Action has access to the functions from lib

Sorry, this solution does not work
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Function Library in QTP prasadworld321 3 6,152 04-20-2012 11:43 PM
Last Post: vijayendra.shukla
  How can we call a function stored in another test ? akhilsoni776 2 854 08-25-2011 10:47 PM
Last Post: akhilsoni776
  Function calling a another funtion in functional library saikri 3 1,826 02-24-2011 08:52 PM
Last Post: basanth27
  Problem with function call vijay44 2 484 01-28-2010 08:52 PM
Last Post: Anshoo Arora
  How can I fetch server time using function Now or any other function? blanchedsouza 2 1,428 11-07-2009 08:34 PM
Last Post: Ankur

Forum Jump:


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