The cmdLog parameter provides the ability to log the commands run during a testcase execution. This produces a file that can be used for later review or processing. For instance, it can be used to automatically generate example documentation.
Just add -DcmdLog to the testcase run to produce a default file with name log.txt. A cmdLog testcase parameter is also provided to allow finer grain control over whether a testcase should produce a log entry. By default, all testcases with an expected result of 0 will produce a log entry.