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


Please Help Members By Posting Answers For Below Questions

Hai anyone please "Explain about Framework in QTP?"

1628


What test you perform mostly? Regression or retesting in your testing process?

580


What is output value? How many types of output values are there in qtp?

580


How to analyzing test results using quicktest professional?

576


how to test use the quality control .how to verify the image verification

2548






I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

1569


I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

1723


Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)

1743


What is QTP’s model for test creation?

683


How to run a test using quicktest professional (qtp)?

548


What are the properties you would use for identifying a browser and page when using descriptive programming?

635


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1561


what is run-time data?

1699


What is QTP scenario.

1735


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

2145