Creating a Batch Script
To create a sample script, go to File – Benchmarks – Batch Testing.
This will create an XML file that illustrates the format of a Dacris Benchmarks batch script. It is also a usable batch script! It runs all benchmark tests and leaves Dacris Benchmarks running after the tests have run.
Running a Batch Script
To run a batch script, execute the following command line:
bmark.exe “path\to\your\script”
Replace ‘path\to\your\script’ with the full path to your XML batch script.
Note: You must run this command from the Dacris Benchmarks directory. Otherwise, you’ll need to add the Dacris Benchmarks directory to your PATH environment variable or specify the full path of bmark.exe in your command.
Batch Command Reference
|
Name |
Parameters |
Description |
|
RunTests |
IDList (e.g. 0,1,2,3) |
Runs benchmark tests. |
|
SetTestDuration |
Value (milliseconds) |
Sets test duration. |
|
SetNumberOfPasses |
Value (passes) |
Sets number of passes. |
|
SetHardDiskDrive |
Value (letter) |
Sets the hard disk drive to test. |
|
SaveBaseline |
Path |
Saves current baseline to specified path. |
|
GenerateReport |
XSLTPath (path to .xslt file) OutputPath (path to output file) |
Generates a report for the current baseline. |
|
GenerateXMLReport |
Path |
Generates a raw XML report at the specified path. |
|
Exit |
- |
Quits the application. |