> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# executeUFTBatch

> Executes an HP / Micro Focus UFT Batch test. Pass the path to an .mtb batch file or a UFT test directory (a directory containing one or more tests). H

Executes an HP / Micro Focus UFT Batch test. Pass the path to an `.mtb` batch file or a UFT test directory (a directory containing one or more tests). HTML run results are copied into FlexDeploy reports.

# Key Features

* Test Batch Runner enables you to run tests in a collective, successive test run.

* Tests are run individually but sequentially in a single session.

* 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.

* Alternatively, pass a UFT test directory (or a parent directory of multiple tests) instead of an `.mtb` file. @Since 11.2.0.0

* Test Batch Runner cannot include tests created in QuickTest or Service Test.

* Integrate Test results into your FlexDeploy.

* Saves the result files into the Report tab.

> [!NOTE]
>
> Open Text UFT versions 23.4 to 24.2 will override the prior execution results in batch executions. Therefore, this operation only saves the last testcase results from the batch file and parses the results.
>
> for more info [https://admhelp.microfocus.com/uft/en/23.4-24.2/UFT\_Help/Content/User\_Guide/how2\_run\_batch.htm](https://admhelp.microfocus.com/uft/en/23.4-24.2/UFT_Help/Content/User_Guide/how2_run_batch.htm)

# Test Instance Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code **</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Test Batch Runner Application Path</td><td>`FDHPT_TEST_BATCH_RUNNER_PATH`</td><td> Yes</td><td>Absolute Path to the HP UFT Test Batch Runner CMD Application. (ex /UFT One installation folder/bin/UFTBatchRunnerCMD.exe.)\
</td></tr></tbody></table>

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Test Batch Runner Application Path</td><td>`FDHPT_TEST_BATCH_RUNNER_PATH_INP`</td><td>No</td><td>Absolute Path to the HP UFT Test Batch Runner CMD Application. (ex /UFT One installation folder/bin/UFTBatchRunnerCMD.exe.)Note: if instance property provided(`FDHPT_TEST_BATCH_RUNNER_PATH`) then this property(`FDHPT_TEST_BATCH_RUNNER_PATH_INP`) not required</td></tr><tr><td>Test Batch Runner File</td><td>`FDHPT_MTB_FILE_PATH`</td><td>Yes</td><td>Path to an HP UFT Test Batch `.mtb` file, or a UFT test directory (single test or parent of multiple tests). Relative paths are assumed to be under FD\_ARTIFACTS\_DIR. (e.g. c:\uft\project.mtb or c:\uft\MyTest). When a directory is used, results are expected under \<TEST>/Report/Report. @Since 11.2.0.0 for directory support.</td></tr><tr><td>Additional Arguments</td><td>`FDHPT_MTB_ADDITIONAL_ARGUMENTS`</td><td>No</td><td>Specify any additional arguments required(ex: -visible N ,-parameter "Parameter1=UFT;Parameter2=Test")</td></tr></tbody></table>

# Artifacts

This operation consumes artifacts.

# Endpoint Selection

This operation delegates endpoint selection to the workflow developer. The workflow editor will default the selection to "All", which selects all available endpoints associated with the target. Selecting a specific resource will result in the selection of endpoints associated with the target which have that resource defined.

# Endpoint Execution

This operation delegates endpoint execution to the workflow developer. The workflow editor will default to "Any", which will execute on any one of the selected endpoints, which will be randomly picked from selected endpoints or a specific endpoint where the previous step may have executed. Changing this value to "All" to will result in execution on all selected endpoints.
