How do we call Library Files(.vbs) in the Test Script
Thanks in Advance...
Answer Posted / sreekanth chilam
Calling of Library Files can be done in two ways:
1.Loading(Calling)the Library Files in design Time:
In QTP 8.2
Test Menu --> Settings--> resources tab --> click "+"
Button & browse the required file & click Apply.
Now the library file has been associted with entire
(Current)test.(This entire process is done before run time
i.e during design time ).
so all the Actions contained in the test can access the
functions written in the .vbs files.
2.Loading the Library Files during the Run Time:
By using th ExecuteFile Statement.
Syntax:ExecuteFile "../.../../../.vbs filepath"
Here in which action the above statement is given ..in to
that action only the .vbs file will be loaded/called.. but
not to all actions contained in the Test.
During Run time , executefile statement loads .vbs file
into the current action of the test.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the script for database check point, bitmapchek point, regular expression ?
what is ODC and GDC?
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
What is the difference between per-action and shared?
How you can delete excel file in qtp?
How many types of actions are there in quicktest professional (qtp)?
when a test case is written how u test using qtp
What is test object?
What is QTP and the use of QTP in TD?
What is the difference between byref and byval in qtp?
How to find array size in qtp?
When do go for loop condition in test?
How to call a test from another test?