This is a simple testing tool that runs from the command line and produces the
results of the test run in a simple text file. The tool runs pre-determined SQL
queries in a prepared-statement like format. You give it the statement
configuration in an XML file, and the tool does the rest.
testfire
test
{ test configuration elements }
dictionary
value
|
| Element |
Attribute |
Description |
| testfire |
NONE |
Document root element |
| test |
class |
Defines the name of the class that implements the test to be run. The only test
class provided by the framework is com.beyondordinary.testfire.tests.DBLoadSqlTest |
| name |
The name given to this test, useful for referencing in the output file. |
| repeat |
Sets the number of times to run
this test. |
| dictionary |
name |
The descriptive name of the
dictionary used in SQL statement references |
| value |
NONE |
A value known to a particular named
dictionary. Multiple instances of this element, as children in the dictionary
element, define a set of possible values for a particular reference name. |
| Element |
Attribute |
Description |
| jdbcDriver |
NONE |
The class name of the JDBC driver. |
| jdbc |
NONE |
Specifies the full JDBC URL used for connections. |
| sql |
NONE |
Specifies a SQL statement to be run as part of the test. The
configuration can have more than one of these elements. |
| numThreads |
NONE |
Specifies the number of threads to use when simulating the load
test. |
| reportFile |
NONE |
Specifies the name of
the output file for test results. |