|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.finra.jtaf.core.model.execution.Interpreter
public class Interpreter
This class is invoked by the Automation Engine to begin execution
Field Summary | |
---|---|
ErrorAccumulator |
ea
|
Constructor Summary | |
---|---|
Interpreter()
|
Method Summary | |
---|---|
void |
addDetails(TestStepsDetails details)
Add details of the invocation to the list of test steps |
void |
addError(Throwable th)
Add exception to the Error Accumulator and set the Test Status to 'Failed' |
InvocationTarget |
getInvocationTarget(Invocation invocation)
Get the invocation target instance if it exists in the Command Registry else throw exception 'Invocation not found' |
List<TestStepsDetails> |
getTestStepDetails()
Return the list of test steps in the current test |
TestResult |
interpret(TestScript test)
Execute the commands in the testscript passed to the Interpreter. |
void |
setCommandRegistry(CommandRegistry commandRegistry)
Set the command registry |
void |
setCommandRunnerPlugins(List<ICommandRunnerPlugin> commandRunnerPlugins)
Add plugins that should run before or after a command |
void |
setTestRunnerPlugins(List<ITestRunnerPlugin> testRunnerPlugins)
Add plugins that should run before or after a test |
void |
visitCommand(Command command)
Invoke the command's launch API. |
void |
visitFunction(Function function)
Execute the function, if any, present in the test |
void |
visitInvocation(Invocation invocation)
Execute the commands in the testscript passed to the Interpreter. |
void |
visitInvocationList(InvocationList invocationtList)
Execute the list of commands in the test |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ErrorAccumulator ea
Constructor Detail |
---|
public Interpreter()
Method Detail |
---|
public void setTestRunnerPlugins(List<ITestRunnerPlugin> testRunnerPlugins)
testRunnerPlugins
- => the list of test level pluginspublic void setCommandRunnerPlugins(List<ICommandRunnerPlugin> commandRunnerPlugins)
commandRunnerPlugins
- => the list of command level pluginspublic void setCommandRegistry(CommandRegistry commandRegistry)
commandRegistry
- public final TestResult interpret(TestScript test) throws Throwable
test
- =>testscript object passed by the Automation Engine
Throwable
public List<TestStepsDetails> getTestStepDetails()
public void visitInvocationList(InvocationList invocationtList) throws Throwable
invocationtList
-
Throwable
public void visitCommand(Command command) throws Throwable
command
- => current command object to be executed
Throwable
public void visitFunction(Function function) throws Throwable
function
-
Throwable
public final void visitInvocation(Invocation invocation) throws Throwable
invocation
- =>testscript object passed by the Automation Engine
Throwable
public InvocationTarget getInvocationTarget(Invocation invocation) throws Throwable
invocation
-
Throwable
public void addDetails(TestStepsDetails details)
public void addError(Throwable th)
th
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |