org.finra.jtaf.core
Class AutomationEngine

java.lang.Object
  extended by org.finra.jtaf.core.AutomationEngine

public class AutomationEngine
extends Object

Singleton class that serves as the front end for the rest of the engine's components. All of its subcomponents are instantiated from a Spring factory.


Field Summary
static org.apache.log4j.Logger logger
           
 MessageCollector mc
           
 
Method Summary
 void buildModel(File librarySource, File testSource)
          Builds test model from the specified test library folder and test scripts folder.
 CommandRegistry getCommandRegistry()
          Gets the command registry
static AutomationEngine getInstance()
          Singleton accessor method.
 Interpreter getInterpreter()
          Gets the test interpreter.
 PluginManager getPluginManager()
          Gets the plugin manager
 ScriptParser getScriptParser()
          Gets the script parser.
 TestAgenda getTestAgenda()
          Gets the test agenda or the strategy object.
 TestDigraph getTestDigraph()
          Gets the digraph of tests.
 TestNamespace getTestRoot()
          Gets the test root.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.apache.log4j.Logger logger

mc

public MessageCollector mc
Method Detail

getInstance

public static final AutomationEngine getInstance()
Singleton accessor method.

Returns:

getTestRoot

public final TestNamespace getTestRoot()
Gets the test root.

Returns:

buildModel

public final void buildModel(File librarySource,
                             File testSource)
Builds test model from the specified test library folder and test scripts folder. By default it would also load the test libraries from the classpath. The test libraries are assumed to have extension *.commands.xml and expected to be under testlibrary folder/package

Parameters:
librarySource -
testSource -

getTestAgenda

public TestAgenda getTestAgenda()
Gets the test agenda or the strategy object.

Returns:

getInterpreter

public final Interpreter getInterpreter()
Gets the test interpreter.

Returns:

getPluginManager

public PluginManager getPluginManager()
Gets the plugin manager

Returns:

getTestDigraph

public final TestDigraph getTestDigraph()
Gets the digraph of tests.

Returns:

getCommandRegistry

public CommandRegistry getCommandRegistry()
Gets the command registry

Returns:

getScriptParser

public ScriptParser getScriptParser()
Gets the script parser.

Returns:


Copyright © 2014. All rights reserved.