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 |
how can we handle errors other than using recovery scenerios in qtp
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
What exactly a frame Work means?what are the different type of frameworks done in QTP?why the caption for QTP given as advanced keyword driven?
scalability testing comes under in which tool?
Hi, I got some difficulties in automating a web check box in a peoplesoft application. Let me explain the scenario, When clicked on a look up button in the application, it navigates to a new page with check boxes and respective options. Below is the source code for one check box and its option. <input type='checkbox' name='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' id='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' tabindex='34' value="Y" onclick="this.form.H1AU_BUNDLE_WRK_H1AU_SELECT_CH$chk$2.valu e=(this.checked?'Y':'N');submitAction_win0 (this.form,this.name);" /> </td> <td align='left' class='PSLEVEL1GRIDODDROW' > <span class='PSEDITBOX_DISPONLY' >$29 - $29 Cap with FREE Mobile</span> I want to parametrize using "$29 - $29 Cap with FREE Mobile". I am not aware of how to parametrize this. Currently I am parametrizing with 'H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' Can any one please help me out with this??/
Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)
Did you use flatfiles in your projects?At what situation you used it?How can you upload flatfiles?
what is option explicit?
What are the properties you would use for identifying a browser and page when using descriptive programming?
What test you perform mostly? Regression or retesting in your testing process?
what are the metrics in general we use in testing.
How to use custom checkpoints in QuickTest Professional?