Relevant for: GUI tests and components and API testing
Test Batch Runner enables you to run tests in a collective, successive test run.
Tests are run individually but sequentially in a single session.
Select one of the following:
- Start > All Programs > HPE Software > HPEUnified Functional Testing > Tools > Test Batch Runner
- <UFT installation folder/bin/UFTBatchRunner.exe
Note: You do not need to have UFT open to use Test Batch Runner.
Use Test Batch Runner to create a list of tests that can be used to run the same batch of tests again another time. Save the list as a batch .mtb file.
Tip: You can include or exclude a test in your batch list from running during a particular batch run without affecting the other tests in the batch.
|Add a test batch file (.mtb)||
|Add individual tests||
All the tests from the selected folder are added to the Tests pane in the main Test Batch Runner window.
Note: When adding tests through the Tests > Add menu command, you must select all the tests from the target folder. If you do not want to run all the tests in the target folder, select the check boxes next to the tests you want to run before you run the test batch.
Select the checkboxes for the tests that you want to include in the test batch run.
Click the Run button to run the test batch.
The Output pane allows you view the results of the test run in run time, including:
- The test's path in the file system
- The progress of the test
- Any errors that occur during the run
Run the test batch via the command line to include UFT tests in a build run, in a continuous integration system.
In the Command Line window, enter UFTBatchRunnerCMD.exe and the source switch followed by the test batch file (.mtb) or folder containing the test.
For example, your command line might contain text like this:
UFTBatchRunnerCMD.exe -source "C:\users\MySample.mtb" UFTBatchRunnerCMD.exe -source "C:\users\APITest1"
Following the test batch run, the results are saved to a run results file.
This file includes details about whether the test passed or failed and errors in running the test.
In the Tests pane, click the results link for a specific test in the Report column.