You can write test reports in batch mode by using the -writereport
batch command as part of a series of batch commands (such as run tests and audit test results) or as a separate write reports batch command.
Because the JavaTest harness executes batch commands in their command line sequence, identify the work directory before the -writereport
command and providing the report directory as an option after the command.
Example:
..; -workdirectory
work-directory -writereport
report-directory ;..
To configure and write reports in batch mode, format the -batch
option, its commands, and the -writereport
command as described in Formatting Batch Commands.