How to use library files in QTP? how we can call these
files in to script?
Answer Posted / uday kumar_anem
We can load the external Library files by using 2 ways:
1. Choose Test > Settings > Choose Resources tab >
Choose + button so select the library file > browse and
select the library file > click Ok.
2. We can load the library files using Scripting:
Use executefile function to load library files.
Example:
executefile "C:\Documents and
Settings\ukumar\Desktop\Sample.vbs"
x=10
y=5
result=SumOfTwoNumbers(x,y)
msgbox(result)
'Code in External Library file(.vbs file).
'Public function SumOfTwoNumbers(a,b)
'Dim sum
'sum=a+b
'SumOfTwoNumbers=sum
'End Function
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME
descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button
In what occasion we can specify global sheet and action sheet?
How to use the object spy in quicktest professional (qtp) 8.0 version?
Where you are storing your script?
What is the use of ordinal identifier in qtp?
Hi Samrat, Thank u very much, what u said it is right.
What is the significance of “action 0” in qtp?
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji
UFT 12.02 which ALM version will support
How to data driven test for Win objects in QTP ?
How does qtp identify objects in the application?
What is difference between design time and run time data table?