Last updated January 18, 2011 12:07, by Jørgen Austvik
How to write a Batch
A batch is a collection of tests that should be run together by JETBatch.
A batch file is a simple java property file that lists the tests and is sent in to JETBatch through the -propfile <batchfile> command line option.
Simple example batch file:
batch.test.failing=src/test/jet/example_test_failing.xml batch.test.example=src/test/jet/example_test.xml
The batchfile uses this pattern:
batch.test.<test_name>=<test xml file> batch.test.<test_name>.<property>=<value>
A patch file normally contain many tests with different test_names and settings.
Reserved properties
- pri
- Priority. Priority 1 tests will be run before priority 2 tests, etc., default 10
- nodes
- The number of nodes this test needs, default 1
- repeat
- The number of times to repeat this test, default 1
- driver
- The test driver to run this test, default
- jet, can also be
- enabled
- true or false, set to false to not run this test. Default true
Other properties
You can also add other properties that will be set for only this test. Any JET properties can be used.
Example:
batch.test.example.jet.reportpath=/tmp
Makes jet.reportpath be /tmp for this test only





