public interface ResultsGenerator
querySetID
and queryIdentifier
. The implementor should write out
one result file for each call that is made to generateQueryResultFile(String, String, String, ResultSet, Throwable, int)
,
however, it will control the format of the content.
The testing process will only generate a new result file when the result mode is TestClientTransaction.RESULT_MODES#GENERATE
Modifier and Type | Field and Description |
---|---|
static String |
PROP_GENERATE_DIR
The
PROP_GENERATE_DIR property indicates where newly generated results
files should be written to. |
Modifier and Type | Method and Description |
---|---|
String |
generateErrorFile(String querySetID,
String queryIdentifier,
String sql,
ResultSet resultSet,
Throwable queryError,
Object results)
Call to generate an error file as the result of incompatibilities in the
comparison of the expected results to the actual results.
|
void |
generateQueryResultFile(String querySetID,
String queryIdentfier,
String query,
ResultSet result,
Throwable queryError,
int testStatus)
Call to generate the results file from an executed query.
|
String |
getGenerateDir()
Return the location that results will be generated to.
|
String |
getOutputDir()
Return the location that output files are written to.
|
static final String PROP_GENERATE_DIR
PROP_GENERATE_DIR
property indicates where newly generated results
files should be written to. The newly generated files should be written to
a different location than the existing expected results.String getOutputDir()
String getGenerateDir()
void generateQueryResultFile(String querySetID, String queryIdentfier, String query, ResultSet result, Throwable queryError, int testStatus) throws QueryTestFailedException
querySetID
- queryIdentfier
- query
- result
- queryError
- testStatus
- QueryTestFailedException
String generateErrorFile(String querySetID, String queryIdentifier, String sql, ResultSet resultSet, Throwable queryError, Object results) throws QueryTestFailedException
querySetID
- queryIdentifier
- sql
- resultSet
- queryError
- results
- QueryTestFailedException
Copyright © 2019. All rights reserved.