22 Apr 2013

How to Run the Batch files in QTP?


Running a Test Batch

You can use Test Batch Runner to run several tests in succession. The results for each test are stored 

in their default location.

Using Test Batch Runner, you can set up a list of tests and save the list as an .mtb file, so that you can easily run the 

same batch of tests again, at another time. You can also choose to include or exclude a test in your batch 

list from running during a batch run.

Notes:

To enable Test Batch Runner to run tests, you must select Allow other Mercury
 products to run tests and 

components in the Run tab of the Options dialog box.

Test Batch Runner can be used only with tests located in the file system. If you
 want to include tests saved in Quality 

Center in the batch run, you must first save the tests in the file system. Components cannot be used with Test Batch 

Runner.

You can stop a test batch run at any time by clicking the Stop button.

To set up and run a test batch:

1. Choose Programs > QuickTest Professional > Tools > Test Batch Runner from the Start menu. The Test Batch

 Runner dialog box opens.

2. Click the Add button or choose Batch > Add. The Open Test dialog box opens.

3. Select a test you want to include in the test batch list and click Open. 

The test is added to the list.

4. Repeat step 3 for each test you want to include in the list. By default, each test selected is added to the bottom 

of the list.

To insert a test at another point in the list, select the test that is to precede the test you would like to add. When 

you add the test, it is added above the selected test.

To remove a test from the list, select it and click the Remove button, or choose
 Batch > Remove.

If you want to include a test in the list, but you do not want the test to be
 run during the next batch run, clear the

 check box next to the test name.

5. If you want to save the batch list, click the Save button, or choose File 

> Save, and enter a name for the list. The file extension is .mtb.

6. When you are ready to run your test batch, click the Run button or choose Batch > Run. If QuickTest is not 

already open, it opens and the tests run sequence begins. Once the batch run is complete, you can view the results 

for each test in its default test results folder (res#report).


we can the run batch process through test batch runner 

go to test batch runner ->click test bach runner->click add button ->add the test script and run the scripts


No comments:

Post a Comment