|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITestHarness
| Method Summary | |
|---|---|
void |
changeReportXML(OutputStream report)
Generate a change report xml to the given output stream. |
String |
compareNodes(XMLTree.Node thisResult,
XMLTree.Node oldResult)
Once the two XML results are returned, this test is used to check if they are the same. |
void |
compareTestResults()
Compare our new results with a set of past result files. |
PrintStream |
compareTestResultsReport()
When we compare the results of one run of a set of tests against another, this is where we write the report. |
boolean |
Console()
Do you want to print the report data to the Console as well as to the report file? |
boolean |
coverageReport()
If true, and trace files are produced, then a coverage report will be generated. |
String |
entrypoint()
AutoDataMap Support Returns the entry point into the Rule Set. |
void |
executeDecisionTables(IRSession session)
Called to execute the Decision Tables. |
String |
getCurrentFile()
Returns the filename of the test set currently under test. |
DataMap |
getDataMap()
|
String |
getDecisionTableName()
This is the name of the Decision Table that has to be executed to evaluate a data set against this rule set. |
String[] |
getDecisionTableNames()
Get a list of decision tables to execute. |
File[] |
getFiles()
Returns the set of files to run as part of the test, in the order provided. |
String |
getOutputDirectory()
This is where we are going to put the trace files, report files, etc. |
String |
getPath()
Returns the path to the Project Directory under which we organize the test files, defined the Rule Sets, etc. for this project. |
String |
getReportFileName()
The name of the report file. |
String |
getResultDirectory()
This is where we are going to look for past results to compare our new results to. |
String |
getRulesDirectoryFile()
Defines the Rules Directory for this RuleSet. |
String |
getRulesDirectoryPath()
Get the path to the Rules Directory Control File. |
String |
getRuleSetName()
Defines the name of the RuleSet we are testing |
String |
getTestDirectory()
Specifies a directory of test files. |
int |
harnessVersion()
Returns the TestHarness Version. |
void |
loadData(IRSession session,
String path,
String dataset)
Provides a way for a project to manage how data is loaded into a session. |
String |
mapName()
AutoDataMap Support Returns the map file name for this test. |
boolean |
numbered()
If true, then the files generated will have a number attached to them. |
void |
printReport(int runNumber,
IRSession session,
PrintStream out)
Print reports; Since the test harness can run multiple tests, the number of the test having been run is passed down to printReport. |
String |
referencePath()
Path to the Alternate Configuration File (generally the deployed rule set) to use as a basis to produce a change report XML |
String |
referenceRulesDirectoryFile()
Alternate Configuration File (generally the deployed rule set) to use as a basis to produce a change report XML |
void |
runTests()
Runs all the test files in the TestDirectory; |
boolean |
Trace()
If you want to trace a run, this function should return true; |
boolean |
Verbose()
If verbose, we are going to print the EDD before we run the rules as well as after we run the rules. |
| Method Detail |
|---|
int harnessVersion()
String entrypoint()
String mapName()
String getPath()
String getRulesDirectoryPath()
String getRulesDirectoryFile()
String getDecisionTableName()
String[] getDecisionTableNames()
String getRuleSetName()
void executeDecisionTables(IRSession session)
throws RulesException
RulesExceptionString getTestDirectory()
String getOutputDirectory()
String getResultDirectory()
boolean Console()
boolean Verbose()
boolean numbered()
boolean Trace()
void loadData(IRSession session,
String path,
String dataset)
throws Exception
session - path - dataset -
ExceptionString getReportFileName()
void runTests()
String compareNodes(XMLTree.Node thisResult,
XMLTree.Node oldResult)
thisResult - oldResult -
PrintStream compareTestResultsReport()
throws Exception
Exception
void compareTestResults()
throws Exception
Exception
void printReport(int runNumber,
IRSession session,
PrintStream out)
throws Exception
runNumber - the number of the test being runsession - the session of the Rules Engine to use as the basis of the reportthe - result file opened by the TestHarness... Most tests need one, so we
open one for you.
ExceptionDataMap getDataMap()
String referenceRulesDirectoryFile()
String referencePath()
void changeReportXML(OutputStream report)
report - boolean coverageReport()
String getCurrentFile()
File[] getFiles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||