How
to Create and Run a Test Batch
Relevant for: GUI tests and components and API testing
- "Open Test Batch Runner" below
- "Access the test batch file" on next page
- "Add batches or tests" on next page
- "Select the tests to be part of the test batch
run" on next page
- "Run the test batch"
- "View the test batch run results"
1. Open Test Batch Runner
Select Start > All Programs > HP Software > HP
Unified Functional Testing > Tools > Test Batch Runner. This opens a separate window for the Test
Batch Runner program. You do not need to have UFT open to use Test Batch Runner.
2. Access the test batch file
To create a new test batch file, select File > New or
click the New batch file button .
Give your batch file a meaningful name and assign it to a
place in your directory.
To open an existing batch file, select File > Open or
click the Open batch file button .
In the Open dialog box, navigate to the folder in which the
batch file is found and click Open.
The tests from the opened batch file are added to the Test
Batch Runner main window.
3. Add batches or tests
To add a test batch file (.mtb), select File > Add or
click the Add button . Navigate to the folder in which the batch file is saved.
To add individual tests, select Tests > Add or click
the Add button . In the Browse For Folder dialog box, select the folder in which your tests
are located. 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.
4. Select the tests to be part of the test batch run
Select the
checkboxes for the tests that you want to include in the test batch run.
5. Run the test batch
Click the Run button to run the test batch. The Output pane
provides run log details of the
batch run while the batch is running.
6. View the test batch run results
In the Tests pane, click the results link for a specific
test in the Run Results column. This
opens the results for that test in the Run Results Viewer.
For details on the Run Results
Viewer, click F1 within the viewer window.
How to Run a Test Batch Using the Windows Command Line
Relevant for: GUI tests and components and API testing
- "Open the Windows Command Line window" below
- "Provide the source folder for the batch file or
tests" below
- "Run the test batch" below
- "View the test batch run results (API testing
only)" below
1. Open the Windows Command Line window
Run cmd.exe to open the Command Line window. (For example,
from the Windows Run
dialog box.)
2. Provide the source folder for the batch file or tests
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"
3. Run the test batch
After entering the Test Batch Runner command and the
location of the folder containing your
tests, press ENTER. Test Batch Runner runs the test batch.
For API tests, the test log is
displayed in the command window.
4. View the test batch run results (API testing only)
When the test batch run is complete:
a. Open the Run Results Viewer from the Start menu. The Open
Run Results dialog box
b. In the Open Run Results dialog box, select the Results
XML file option.
c. Navigate to the Results.xml file under the test's Report
folder and click Open.
Each test has its own results.
Big thumbs up for making such a wonderful blog with great content.
ReplyDeleteLoadrunner course in Chennai | Qtp training institutes in chennai
Informative post indeed, I’ve being in and out reading posts regularly and I see alot of engaging people sharing things and majority of the shared information is very valuable and so, here’s my fine read.
ReplyDeleteclick here code
click here chat
click here to check results
click here to check marks
click here to change your password