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 difference between development and testing
For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?
How many add-ins comes by default with quicktest professional (qtp)?
which type of testing process are you following in ur company? how to recognize a qtp page?
Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
Can anybody post some real time scenario in qtp? please its very urgent.
With what extension you can save the list of tests in a file to run in test batch runner?
Get the count of files of similar types from a folder.
I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance
Hi ,Can any one pleas explain how to test splash objects using QTP?
How the exception handling can be done using quicktest professional (qtp)?
Step 3&4 are repeated until an the object in recognised uniquely.
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 to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?