How to use library files in QTP? how we can call these
files in to script?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / priyank
add it to resource OR if you required during run-time use
ExecuteFile " ..\absolute path "
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / chandana
Hi priyank
can u plz explain in detail with validations, it is very
use full for us.
Thank U
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / pravati
file>>new test>>test name>>test path >> save
file>>new>>function library>>path>>create file>> write script>>save.
for associate file>>setting>>Resources>>associate function library in the test which u want to call the function library>>apply>>ok
| Is This Answer Correct ? | 0 Yes | 0 No |
What is CMMP and CMMH?
What is the difference between client server application and web based application?
Suppose there is a link present somewhere in an excel sheet. Find the link and click on it. How to write a script using Excel application object in QTP?
Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.
What are the five challenges you faced in QTP?
how will u choose a tool for test automation ?
HI ALL, HOW WE INSTALL .NET ADD-IN OR JAVA ADD-IN TO THE QTP? PLZ URGENT.ANSWER ME.
Hello Everyone, In QTP we have one option Data Driver wizard that comes in Tools -> Data Driver. so, please tell me abtout the use of Add Value and Parameterize options available in Data Driver wizard. And also the concept of value, constants, Parameterized displayed in the wizard. Please explain by giving the example. Thanks in advance, Gaytri
if you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP?
give me the code to save all messages of inbox of gmail into a folder and notepad
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
Whether qtp 9.0 supports Test director8.0