JTR 4.0 API Documentation

jtr.runners
Class AbstractRunner

java.lang.Object
  extended by jtr.runners.AbstractRunnerAncestor
      extended by jtr.runners.AbstractRunner
All Implemented Interfaces:
java.lang.Runnable, IRunner, IRunnerClean, IRunnerParameterized, IRunnerPooled

public abstract class AbstractRunner
extends AbstractRunnerAncestor

This is the base class every application level runner should extend. It provides a lot of useful methods along with the handling of the interactions with the JTR runtime.

Since:
1.0
Version:
4.0
Author:
Francesco Russo (frusso@dev.java.net)

Field Summary
 
Fields inherited from class jtr.runners.AbstractRunnerAncestor
epoch, logger, paramsAssigner, pool
 
Constructor Summary
AbstractRunner()
           
 
Method Summary
 int getCurrentRun()
          Return the current run assigned to the IRunner
 void run()
          This method wraps the test() method implemented by application developed runners.
It manages the execution of the test() method according to the sleep time interval associated with the wrapped IRunner instance, according to the declared number of required runs and so on.
Furthermore there is a fundamental exception accounting feature which enables JTR to collect information about each single IRunner run and the handling of boring/complex tasks such as the reinitialization of each runner parameters according to the associated IAssignmentPolicy.
abstract  void test()
          This is the only one method application-level runner developers are required to implement.
It contains the testing logic specific to each runner.
 
Methods inherited from class jtr.runners.AbstractRunnerAncestor
clean, doRunTest, enrichOutcome, getDefaultName, getEnterprise, getEpoch, getFailures, getInstanceCount, getName, getOutcomeFactory, getParameters, getParamsAssigner, getPool, getRuns, getSleepTime, getSuccesses, getTestOutcomeTable, handleFailure, initializeTimers, setEnterprise, setEpoch, setInstanceCount, setName, setOutcomeFactory, setParameters, setParamsAssigner, setPool, setRuns, setSleepTime, setTestCompletionListener, setTestOutcomeTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jtr.runners.IRunner
receiveFailureNotification
 
Methods inherited from interface jtr.runners.IRunnerPooled
cleanupResources
 

Constructor Detail

AbstractRunner

public AbstractRunner()
Method Detail

run

public final void run()
This method wraps the test() method implemented by application developed runners.
It manages the execution of the test() method according to the sleep time interval associated with the wrapped IRunner instance, according to the declared number of required runs and so on.
Furthermore there is a fundamental exception accounting feature which enables JTR to collect information about each single IRunner run and the handling of boring/complex tasks such as the reinitialization of each runner parameters according to the associated IAssignmentPolicy.

See Also:
Runnable.run()

getCurrentRun

public int getCurrentRun()
Return the current run assigned to the IRunner

Returns:
int The current run

test

public abstract void test()
                   throws java.lang.Throwable
This is the only one method application-level runner developers are required to implement.
It contains the testing logic specific to each runner.

Throws:
java.lang.Throwable

The JTR Project is licensed under GPL version 2