|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--roast.Roast
The Roast class handles command-line parsing, control and communication between four unit operations, logging utility and failure messages, and logging test case summary statistics.
Field Summary | |
static int |
excErrorCount
The number of #excMonitor failures. |
static int |
totalCaseCount
The number of test cases. |
static int |
valueErrorCount
The number of #valueCheck failures. |
Constructor Summary | |
Roast()
|
Method Summary | |
static void |
logFailureMessage(java.lang.String message,
int lineNumber)
Write a failure message to the log file. |
static void |
logUtilityMessage(java.lang.String message,
int level)
Write a utility message to the log file if level is less than or equal to currentMessageLevel. |
static CommandLine |
parseArgs(FlagSpec[] flagSpecs,
java.lang.String[] args)
Parse command-line arguments. |
static void |
printCounts()
Write summary statistics to the log file. |
static void |
setMessageLevel(int level)
Set the current message level. |
static void |
startUnitOps(GenerateUnitOp generate,
FilterUnitOp filter,
ExecuteUnitOp execute,
CheckUnitOp check)
Called by driver to start unit operations. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static int totalCaseCount
public static int valueErrorCount
public static int excErrorCount
Constructor Detail |
public Roast()
Method Detail |
public static void startUnitOps(GenerateUnitOp generate, FilterUnitOp filter, ExecuteUnitOp execute, CheckUnitOp check)
while g.hasMoreTuples() t = g.nextTuple() if f.isValidTuple(t) r = e.executeTuple(t) c.checkTuple(r)Tuples are requested one at a time until the test tuple set has been exhausted. The framework filters out test tuples deemed undesirable by the tester. If a tuple is discarded, the framework requests the next tuple. The framework invokes executeTuple(t) with each valid test tuple and passes the result to checkTuple.
GenerateUnitOp
,
FilterUnitOp
,
ExecuteUnitOp
,
CheckUnitOp
public static CommandLine parseArgs(FlagSpec[] flagSpecs, java.lang.String[] args) throws ParameterException
-logfile-serialize is valid only if -logfile is present. If -serialize is present, the logfile will be output as serialized message object which can be display by the Roast Log Message Viewer.-serialize -level
The flagSpecs parameter is an array of FlagSpec objects. This allows client-defined flag arguments to be specified and parsed.
flagSpec
- array of client-defined command-line flag specifications;
null if only the default flags are allowedargs
- the array of command-line argumentsCommandLine
,
FlagSpec
,
LogViewer
public static void logUtilityMessage(java.lang.String message, int level)
message
- the utility message textlevel
- the utility message levelLogFile
public static void logFailureMessage(java.lang.String message, int lineNumber)
message
- the failure message textlineNumber
- the test script line number of the failureLogFile
public static void printCounts()
public static void setMessageLevel(int level)
LogFile
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |