QTP Forums

Full Version: call function from another library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Check whether ExecuteFile statement is working or not?
(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
Reference URL's