QTP tutorials & interview questions


Search more on QTP here

QTP Scripts

If you enjoy reading this QTP blog, please help multiply the reach of this blog by clicking on +1 button [on left side of BOOKMARK button] above.

QTP Script 1
How to launch a QTP application, open a new test and close QTP through a script.

QTP Script 2
How to get data from Excel into QTP without importing the Excel.

QTP Script 3
How to launch QTP, open a test, run it, display results and close QTP.

QTP Script 4
How to bring data from a text file into QTP data table.

QTP Script 5
How to import excel into datatable in QTP.

QTP Script 6
How to pass output parameter's value of one test to input parameter of another test.

QTP Script 7
How to copy data from Excel sheet to a Text file?

QTP Script 8
'How to count and get the path & name of all the object repositories associated with an action ?

QTP Script 9
How to move data from a text file to excel sheet.

QTP Script 10
How to get all files and folders within a given folder?

QTP Script 11
How to connect to Oracle 10g from QTP 9.5 and run a SQL query.

QTP Script 12
How to get the count and name of all the Recovery Scenarios associated with the test?

QTP Script 13
How to check if a particular library file is associated with a test and to associate it if it is not already associated.

QTP Script 14
How to view the information (Name, Type, No. of object repositories associated and location) about all the actions of a QTP Test in a messagbox?


QTP Script 15
How to transfer the information (Name, Type, No. of object repositories associated and location) about all the actions of a QTP Test in a Excel file?


QTP Script 16
How to count total number of links on a web page?

QTP Script 17
How to get link names and URLs for all the links on a web page?

QTP Script 18
How to retrieve all direct children of the specified parent object and their properties from Shared Object Repository?

QTP Script 19
How to minimize, maximize, restore, resize a notepad?

QTP Script 20
How to get the associated Addins for a particular test?

QTP Script 21
How to Export QuickTest Professional (QTP) test results to HTML file?

QTP Script 22
How to search for a particular string in MS word document?

QTP Script 23
How to Find & Replace a string in MS word document?

QTP Script 24
How to run multiple tests in QuickTest professional (QTP) ?

QTP Script 25
How to retrieve data from a word document after removing the blank lines?

QTP Script 26
How to run all tests in a specific folder in QuickTest professional (QTP)?

QTP Script 27
How to add any path in the Search List '(Tools -> Options -> Folders tab) through a script.

QTP Script 28
How to rename all subfolders within a given folder?

QTP Script 29
How to rename all the files in a folder?

QTP Script 30
How to rename all files in a folder and its subfolder?

QTP Script 31
How to compare range of cells in two excel files and highlight the cells with different values in the first file?

QTP Script 32
How to compare two excel files and highlight the cells with different values in the first file?

QTP Script 33
How to compare two excel sheets of the same excel workbook and highlight the cells with different values in the first sheet?

QTP Script 34
How to compare two different ranges in a same sheet of excel workbook and highlight the cells with different values in the first range?

QTP Script 35
How to compare two files in QTP?

1    2    3    4    5