how do u get lib files into scripting files?

Answers were Sorted based on User's Feedback



how do u get lib files into scripting files?..

Answer / king

The above one related to navigation this is the code
executefile ("path of VBS file")

Is This Answer Correct ?    2 Yes 0 No

how do u get lib files into scripting files?..

Answer / leena

Open test Go to File menu -> Settings -> Resources ->
Associate function libraries -> Click on '+' button ->give
Function library file path -> Apply -> Ok. In this way
function library file get associat with the test. now call
a function in the function library file. While runing the
scrit lib file is called into scripting file.

Is This Answer Correct ?    1 Yes 0 No

how do u get lib files into scripting files?..

Answer / mogal

1. Open test Go to File menu -> Settings -> Resources ->
Associate function libraries -> Click on '+' button ->give
Function library file path -> Apply -> Ok

2.ExecuteFile ("Path with FIleName")
3. LoadFunctionLibrary("Path with FIleName")

Is This Answer Correct ?    1 Yes 0 No

how do u get lib files into scripting files?..

Answer / deepa

save the notepad text as .vbs eg:testing.vbs .after
creating the file in qtp click open choose liberary file
select testing.vbs .through this v can view the libfiles in
scripting file

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

0 Answers   ABC,


What is repository parameters in QTP?how will we define that????what is unmapped & mapped repository parameters????????

1 Answers  


Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open" Dialog("Login").WinEdit("Agent Name:").Set DataTable ("p_Text", dtGlobalSheet) Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").SetSecure DataTable ("p_Text1", dtGlobalSheet) Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").Click datatable.Value(3)= "Incorrect password. Please try again" Dialog("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)="Please enter agent name" Dialog ("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)= "Please enter password" Dialog("Login").WinButton ("CANCEL").Click else Window("Flight Reservation").Move 309,146 datatable.ExportSheet "C:\Raj\Result.xls" ,1 Window("Flight Reservation").Close End If I want to capture the Message string from Dialog("Login").Dialog("Flight Reservations" Also pls let me know if this is the right way to do the script for login. Pls provide some script for login Flight.exe Thanks in advance Raj Dhiman

1 Answers  


How to create configuration scripts

1 Answers  


How we can add actions in the test using QTP?

5 Answers  






How to make arguments optional in a function?

6 Answers   Liquid Crystal,


what type of test cases tou will automate?

4 Answers   Google,


I have 2 Environment variable which holds int. I called into my test and addedup. but output is concatenating the values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20, c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to overcome this pblm?

3 Answers   TCS,


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??/

0 Answers  


What is BPT?

2 Answers   Allied Group,


Hi All As per the requirements i have to copy the data from word document to excel sheet using the QTP Note : Data in word document is in tabular format i.e there is 80 rows and 5 columns table Can any body provide code for this ? Thanks in advance Regards Test123Test

1 Answers  


Why qtp always start action1 and does not start action?

0 Answers  


Categories