|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.tools.drivers.AbstractDriver
org.safs.tools.drivers.DefaultDriver
org.safs.tools.drivers.SAFSDRIVER
public class SAFSDRIVER
SAFSDRIVER is the default, completed implementation of our abstract 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.
DefaultDriver.run(),
Command-Line Options,
Configuration File Options| Field Summary |
|---|
| Fields inherited from class org.safs.tools.drivers.DefaultDriver |
|---|
cycleLog, cycleStack, driverConfigPath, engineObjects, enginePreference, engines, locator, projectConfigPath, safsmonitor, status, stepLog, stepStack, suiteLog, suiteStack |
| Fields inherited from class org.safs.tools.drivers.AbstractDriver |
|---|
benchSource, configInfo, 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 |
| Fields inherited from interface org.safs.tools.drivers.DriverInterface |
|---|
DRIVER_CONTROL_POF_VAR, DRIVER_CONTROL_VAR |
| Constructor Summary | |
|---|---|
SAFSDRIVER()
Default constructor using the default Driver name. |
|
SAFSDRIVER(java.lang.String drivername)
Constructor allowing an alternate Driver name. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAFSDRIVER()
DefaultDriver.run() is invoked.
public SAFSDRIVER(java.lang.String drivername)
DefaultDriver.run() is invoked.
AbstractDriver.driverName| Method Detail |
|---|
protected StatusInterface processTest()
processTest in class AbstractDriverAbstractDriver.processTest(),
UniqueStringID,
UniqueStringFileInfopublic static void main(java.lang.String[] args)
DefaultDriver.run(),
Command-Line Options,
Configuration File Options
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||