public class SAFSVARSTest extends SAFSDRIVER
The test app requires that SAFS and STAF exist in the classpath.
As is required for the Configurable initialization of SAFSVARS, 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) [SAFS_VARS] AUTOLAUNCH=TRUEThis initialization file must be found by the normal initialization of the default driver. Usually, this can simply be in a project root directory.
Sample invocation:
java -Dsafs.project.root=path2/projectroot _ -cp path2/safs.jar;path2/jstaf.jar _ org.safs.tools.drivers.test.SAFSVARSTest
Modifier and Type | Field and Description |
---|---|
(package private) int |
numFails |
(package private) int |
numPasses |
(package private) int |
numTests |
(package private) java.lang.String |
testFileName |
(package private) ConfigurableToolsInterface |
varstool |
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 |
---|
SAFSVARSTest() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
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
ConfigurableToolsInterface varstool
java.lang.String testFileName
int numPasses
int numFails
int numTests
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)