public class SAFSDRIVER extends DefaultDriver
This class is intended to be executed as a standalone Java application--typically, in its own JVM. The main() entry point will instance a new SAFSDRIVER and immediately invoke run().
Command-line Options and Configuration File Options are linked below.
The default name of configuration files is "SAFSTID.INI". There is a hierarchy of configuration files that will be sought based on command-line parameters provided. This hierarchy is summarized in the Configuration File Options doc linked below and detailed below::
In general, you want to provide the bare minimum of command-line parameters and place all remaining info in one or more configuration files. The total of all command-line parameters and config file information must enable the driver to locate valid driver and project root directories, project subdirectories, and all other items necessary to run a specified test. See the DefaultDriver.run() link below for all the neat things the driver will do prior to launching the test!
An example invocation, providing the bare minimum command-line parameters:
Sample TIDTest.INI in c:\SAFSProject specific to one test:
[SAFS_PROJECT] ProjectRoot="C:\safsproject" [SAFS_TEST] TestName="TIDTestCycle" TestLevel="Cycle" CycleSeparator="," CycleLogName="TIDTestCycle" CycleLogMode="41" (or) CycleLogMode="TOOLLOG CONSOLELOG TEXTLOG"
Sample SAFSTID.INI in c:\SAFSProject used by all tests:
[SAFS_DRIVER] DriverRoot="C:\safs" [SAFS_MAPS] AUTOLAUNCH=TRUE [SAFS_INPUT] AUTOLAUNCH=TRUE [SAFS_VARS] AUTOLAUNCH=TRUE [SAFS_LOGS] AUTOLAUNCH=TRUE
And that is enough for the TID to run the TIDTestCycle.CDD test. Assuming, that test exists in c:\SAFSProject\Datapool\ as expected.
Of course, more of the configuration parameters necessary for desired engines will have to be in those configuration files once the engines actually become available.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PRODUCT_DESCRIPTION
'The driver to run test script in (cycle .cdd, suite .std and step .sdd) tables.'
|
static java.lang.String |
PRODUCT_NAME
'SAFS DRIVER'
|
static java.lang.String |
PRODUCT_VERSION
'1.0'
|
cycleLog, cycleStack, engineObjects, enginePreference, engines, safsmonitor, status, stepLog, stepStack, suiteLog, suiteStack, useSAFSMonitor
autoitcomponent, benchSource, configInfo, core, counterInfo, counts, cycleflowcontrol, cycleLinkedFac, cycleLogMode, cycleLogName, cycleSeparator, cycleSuffix, datapoolSource, debug, description, difSource, driverConfigPath, driverName, driverRootDir, embeddedEngines, exitCycle, exitSuite, expressionsOn, input, ipcommands, locator, logLevel, logs, logsSource, maps, millisBetweenRecords, orderable, perTableFlowControl, productName, projectConfigPath, projectRootDir, safsDataServiceID, statuscounts, stepflowcontrol, stepLinkedFac, stepLogMode, stepLogName, stepSeparator, stepSuffix, suiteflowcontrol, suiteLinkedFac, suiteLogMode, suiteLogName, suiteSeparator, suiteSuffix, testLevel, testName, testSource, tidcommands, tidcomponent, vars, verifySource, version
DRIVER_CONTROL_POF_VAR, DRIVER_CONTROL_POW_VAR, DRIVER_CONTROL_VAR
Constructor and Description |
---|
SAFSDRIVER()
Default constructor using the default Driver name.
|
SAFSDRIVER(java.lang.String drivername)
Constructor allowing an alternate Driver name.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Entry point for standalone Java execution.
|
protected StatusInterface |
processTest()
This is the one that actually opens and loops through our tests records!
We use String-based Interface objects for inter-API communication.
|
clearEnginePreferences, closeTestLogs, endEnginePreference, getEngineInterface, getEnginePreferences, getEngines, getFullEngineClass, getGenericInterface, getLogID, getPreferredEngine, getPreferredEngineIndex, getTestLevelSeparator, hasEnginePreferences, initializeMiscConfigInfo, initializePresetVariables, initializeRuntimeEngines, initializeRuntimeInterface, initLog, insertConfigureInterfaceSource, isPreferredEngine, isPreferredEngine, isUseSAFSMonitor, launchSAFSMonitor, openTestLogs, parseLogMode, run, setUseSAFSMonitor, shutdownRuntimeEngines, shutdownRuntimeInterface, startEnginePreference, validateLogParameters, validateTestParameters
addConfigureInterfaceSource, addEmbeddedEngine, addStatusCounts, collectEngines, collectFramework, collectHistory, collectMachine, collectUser, connectSAFSDataService, disconnectSAFSDataService, getAutoItComponentSupport, getBenchDir, getConfigureInterface, getConfigureLocator, getCoreInterface, getCountersInterface, getCycleLogMode, getCycleLogName, getCycleSeparator, getCycleSuffix, getDatapoolDir, getDebugInterface, getDescription, getDifDir, getDriverName, getDriverRootDir, getEmbeddedEngines, getFlowControlInterface, getInputInterface, getIPDriverCommands, getLogLevel, getLogsDir, getLogsInterface, getMapsInterface, getMillisBetweenRecords, getParameterValue, getProductName, getProjectDirectoryInfo, getProjectRootDir, getRootDirectoryInfo, getRootVerifyDir, getStatusInterface, getStepLogMode, getStepLogName, getStepSeparator, getStepSuffix, getSuiteLogMode, getSuiteLogName, getSuiteSeparator, getSuiteSuffix, getTestDir, getTestLevel, getTestName, getTIDDriverCommands, getTIDGUIlessComponentSupport, getVarsInterface, getVersion, incrementGeneralStatus, incrementTestStatus, isExitCycle, isExitSuite, isExpressionsEnabled, isModifiedConfig, isModifiedRoot, isPerTableFlowControl, logMessage, phoneHome, phoneHome, processEmbeddedVariable, resetModifiedProperties, setBenchDir, setDatapoolDir, setDescription, setDifDir, setExitCycle, setExitSuite, setExpressionsEnabled, setLogsDir, setMillisBetweenRecords, setPerTableFlowControl, setProductName, setProjectRootDir, setRootVerifyDir, setTestDir, setVersion, validateRootConfigureParameters
public static final java.lang.String PRODUCT_NAME
public static final java.lang.String PRODUCT_VERSION
public static final java.lang.String PRODUCT_DESCRIPTION
public SAFSDRIVER()
DefaultDriver.run()
is invoked.public SAFSDRIVER(java.lang.String drivername)
DefaultDriver.run()
is invoked.AbstractDriver.driverName
protected StatusInterface processTest()
processTest
in class AbstractDriver
AbstractDriver.processTest()
,
UniqueStringID
,
UniqueStringFileInfo
public static void main(java.lang.String[] args)
Copyright © SAS Institute. All Rights Reserved.