Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
call function from another library
#1
Not Solved
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
Reply
#2
Not Solved
Check whether ExecuteFile statement is working or not?
Reply
#3
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a Function in Function Library when function is defined in an Action jitenderkkr 0 2,767 11-27-2014, 12:53 PM
Last Post: jitenderkkr
  Function written in Func library is not returning values but works in same script Shwethareddy 5 4,416 02-25-2013, 10:55 AM
Last Post: vinod123
  Run Error on Function call in QTP essentials cnujonnala 1 2,196 12-31-2012, 02:38 PM
Last Post: krr
  Function Library in QTP prasadworld321 3 21,918 04-20-2012, 11:43 PM
Last Post: vijayendra.shukla
  How can we call a function stored in another test ? akhilsoni776 2 3,593 08-25-2011, 10:47 PM
Last Post: akhilsoni776

Forum Jump:


Users browsing this thread: 1 Guest(s)