To call a function we need to prepare the function in the function library for eg: This is the function you prepared in the library : function mywebinvoke() systemutil.run "iexplore" www.yahoo.com end function
Now to call this function go to the test in qtp and type