How do we call Library Files(.vbs) in the Test Script
Thanks in Advance...
Answer Posted / uday
Associating a function library can be done in many ways.
Putting all the above valid answers here.
1. Open QTP -> Click on File menu -> Settings -> Resource ->
Choose the file path of the function library.
(Manual way of associating a function library)
2. ExecuteFile "FilePath".
If you use in an action, then the functions in function
library are available on that action only, other actions
cannot access the functions in function library.
Another disadvantage is, the function pointer will not go
into the function library when you debug the script.
3. LoadFunctionLibrary(From QTP 11), which will load the
function library at run-time.
4. Using AOM.
Thanks,
Uday
http://qtpftvideos.blogspot.com/
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to test background color and dynamic images during run time can you put the check point for moving objects?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
How many types of recording facility are available in quicktest professional?
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief
any body can you help me what is the script to automate an comand promt
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)
I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...
If the objects hierarchy is changing from build to build, then how you will handle that condition?
Explain how you can find length of array in qtp?
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please
The hybrid framework can be implemented for any application. Is it true?
Give the syntax to import/export xls into qtp.
What is Curd testing?
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail