public class SAFSDRIVERCOMMANDSTest extends SAFSDRIVER
As is required for the Configurable initialization, there must be a valid ConfigureInterface from which to extract configuration information. That is why we subclass the SAFSDRIVER.class, and override its run() method.
Minimum configuration information is needed in the SAFSTID.INI file:
[SAFS_DRIVER] DriverRoot=path2/safs (root safs install or driver location)This initialization file must be found by the normal initialization of the default driver. Usually, this can simply be in a project root directory.
This test has some STAF setup requirements:
Sample invocation:
java -Dsafs.project.root=path2/projectroot _ -cp path2/safs.jar; _ org.safs.tools.enignes.test.SAFSDRIVERCOMMANDSTest
Modifier and Type | Field and Description |
---|---|
(package private) SAFSDRIVERCOMMANDS |
engine |
(package private) DCTestRecordHelper |
testRecordData |
cycleLog, cycleStack, driverConfigPath, engineObjects, enginePreference, engines, locator, projectConfigPath, safsmonitor, status, stepLog, stepStack, suiteLog, suiteStack
benchSource, configInfo, core, counts, cycleflowcontrol, cycleLinkedFac, cycleLogMode, cycleLogName, cycleSeparator, cycleSuffix, datapoolSource, debug, difSource, driverName, driverRootDir, exitCycle, exitSuite, expressionsOn, input, ipcommands, logLevel, logs, logsSource, maps, millisBetweenRecords, perTableFlowControl, projectRootDir, statuscounts, stepflowcontrol, stepLinkedFac, stepLogMode, stepLogName, stepSeparator, stepSuffix, suiteflowcontrol, suiteLinkedFac, suiteLogMode, suiteLogName, suiteSeparator, suiteSuffix, testLevel, testName, testSource, tidcommands, tidcomponent, vars, verifySource
DRIVER_CONTROL_POF_VAR, DRIVER_CONTROL_POW_VAR, DRIVER_CONTROL_VAR
Constructor and Description |
---|
SAFSDRIVERCOMMANDSTest() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
protected void |
process(java.lang.String inputrecord) |
void |
run()
Bootstrap a newly instanced driver.
|
processTest
_resetModifiedProperties, addConfigureInterfaceSource, clearEnginePreferences, closeTestLogs, endEnginePreference, getConfigureLocator, getEngineInterface, getEnginePreferences, getEngines, getFullEngineClass, getGenericInterface, getLogID, getParameterValue, getPreferredEngine, getPreferredEngineIndex, getProjectDirectoryInfo, getRootDirectoryInfo, getTestLevelSeparator, hasEnginePreferences, initializeMiscConfigInfo, initializePresetVariables, initializeRuntimeEngines, initializeRuntimeInterface, initLog, insertConfigureInterfaceSource, isModifiedConfig, isModifiedRoot, isPreferredEngine, isPreferredEngine, launchSAFSMonitor, openTestLogs, parseLogMode, shutdownRuntimeEngines, shutdownRuntimeInterface, startEnginePreference, validateLogParameters, validateRootConfigureParameters, validateTestParameters
addStatusCounts, getBenchDir, getConfigureInterface, getCoreInterface, getCountersInterface, getCycleLogMode, getCycleLogName, getCycleSeparator, getCycleSuffix, getDatapoolDir, getDebugInterface, getDifDir, getDriverName, getDriverRootDir, getFlowControlInterface, getInputInterface, getIPDriverCommands, getLogLevel, getLogsDir, getLogsInterface, getMapsInterface, getMillisBetweenRecords, getProjectRootDir, getRootVerifyDir, getStatusInterface, getStepLogMode, getStepLogName, getStepSeparator, getStepSuffix, getSuiteLogMode, getSuiteLogName, getSuiteSeparator, getSuiteSuffix, getTestDir, getTestLevel, getTestName, getTIDDriverCommands, getTIDGUIlessComponentSupport, getVarsInterface, isExitCycle, isExitSuite, isExpressionsEnabled, isPerTableFlowControl, setBenchDir, setDatapoolDir, setDifDir, setExitCycle, setExitSuite, setExpressionsEnabled, setLogsDir, setMillisBetweenRecords, setPerTableFlowControl, setProjectRootDir, setRootVerifyDir, setTestDir
SAFSDRIVERCOMMANDS engine
DCTestRecordHelper testRecordData
protected void process(java.lang.String inputrecord)
public void run()
DefaultDriver
The model for overall driver operation is that any command-line arguments or configuration file arguments that prevent normal execution will generate an IllegalArgumentException. Those IllegalArgumentExceptions are caught here and sent to stderr output. We then return immediately from this function.
DefaultDriver.validateRootConfigureParameters()
DefaultDriver.validateTestParameters()
DefaultDriver.validateLogParameters()
DefaultDriver.initializeRuntimeInterface()
DefaultDriver.launchSAFSMonitor()
DefaultDriver.initializePresetVariables()
DefaultDriver.initializeMiscConfigInfo()
DefaultDriver.initializeRuntimeEngines()
DefaultDriver.openTestLogs()
AbstractDriver.processTest()
DefaultDriver.closeTestLogs()
DefaultDriver.shutdownRuntimeEngines()
DefaultDriver.shutdownRuntimeInterface()
SAFSMonitorFrame.dispose()
run
in class DefaultDriver
SAFSDRIVER.main(String[])
public static void main(java.lang.String[] args)