Can we assign a funciton library/recovery file to QTP script through coding?
Yes you can but not at run-time when that script is running
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
Thanks for the response.
However, would you please let me know how can we do it?
Search the forum for Recovery and "QuickTest.Application"
I tried working on the requirement and found one method to link ibrary file to test through code.
Here I used 'ExecuteFile' function and was able to call a funciton of a funciton liabrary which was not assosiated with the test.
Thanks for your advice. Also please let me know if there is any other method we can think of to assosiate the function library to test.
You can only do it when QTP is not running. If you want to do it when the script is running then it is not possible
Tarun, could you please elaborate above statement??
Do you want to say that the executefile statement can not be used in QTP script?
I am using a statement as
ExecuteFile "D:\Automation\Keywords\FrameworkFunctions.vbs "
But the script is failing with error "name redeifned"
Please put your views on this.
Thanks and Regards,
Set App = CreateObject("QuickTest.Application")
Pls check this
Sorry. There was a syntax error in the library file, so I was getting the error "Name Redefined"
Please close th tool and restart it