QTP Folder Structure







Each QTP test script is a directory itself. The name of the QTP script directory will be the name of the script. Change in the name of this folder will result in change in the script name.

By default each QTP script contains two sub folders “Action 0” and “Action1”. If we increase the number of actions then the number of the subfolders will increase accordingly. However please note that changing the name of action will not result into change of the sub folder names.

Following is the directory structure:






















1. Action 0: Only Script.mts file is useful in this folder. This file contains the call to the actions and the no of iterations on which the action has to iterate. We can also add code here.


2. Action 1:
a. Snapshots: This folder contains the snapshot of the application  taken during recording. . It contains the ‘HTML, XML & PNG files
b. Objectrepository.bdb ( BDB = Berkeley Data base, an oracle product): This is the local object repository of the action
c. Resource.mtrThis is a binary file and contains the information about the action IO parameters and similar action info.
d. Script.mts  (Script files): This file contains the QTP code.


3. Default.xls (Default Excel file): This is the default xls data file of the test script


4. Default.cfg (Configuration file): Configuration file of the script mainly for the loadrunner


5. Lock.lck (locks the file opened by QTP Script): It locks the open files of the test. If a script is open at one machine. Then it locks that script so that it will open only in read mode by other machines or by qtp script editor.
Interesting Note: If you make this file read then QTP script will always open in read only  mode. To enable the editing mode back you need to remove the read only mode from the lock.lck file.


6. Parameters.mtr:  It contains the test script IO parameters info.


7. Test.tsp  (test settings): A binary file not sure about but most probably contains the QTP test settings.


8. ScriptName.usr: Loadrunner file


9. Default.usp:  Load runner file

Comments

  1. Thanks a lot. Excellent

    ReplyDelete
  2. very goood thanks much :)

    ReplyDelete
  3. Hi,
    Is there any way to read the content in Resource.mtr /Parameters.mtr file.

    Thanks
    Vani

    ReplyDelete

Post a Comment

Popular posts from this blog

Test Batch Runner - Run QTP Scripts from xls file

Selenium: db and excel data into maps

Python: get entire workbook data cell by cell