JTR 5.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:
5.0
Author:
Francesco Russo (frusso@dev.java.net)

Field Summary
 
Fields inherited from class jtr.runners.AbstractRunnerAncestor
logger
 
Constructor Summary
AbstractRunner()
           
 
Method Summary
protected  void specializedBeforeRunTest()
          This method allows more specialized subclasses to perform preparatory activities right before the actual test is launched.

Note: implementations of this method must always be final.
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
addMessage, afterTest, beforeTest, clean, enrichOutcome, getCurrentRun, getDefaultName, getEnterprise, getEpoch, getFailures, getFqn, getInstanceCount, getInstanceID, getName, getOutcomeFactory, getParameters, getParamsAssigner, getPool, getRuns, getSleepTime, getStatFunction, getSuccesses, getTestOutcomeTable, getUserMessage, handleFailure, run, setCurrentRun, setEnterprise, setEpoch, setFqn, setInstanceCount, setInstanceID, setName, setOutcomeFactory, setParameters, setParamsAssigner, setPool, setRuns, setSleepTime, setStatFunction, 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

specializedBeforeRunTest

protected final void specializedBeforeRunTest()
                                       throws java.lang.Throwable
Description copied from class: AbstractRunnerAncestor
This method allows more specialized subclasses to perform preparatory activities right before the actual test is launched.

Note: implementations of this method must always be final.

Specified by:
specializedBeforeRunTest in class AbstractRunnerAncestor
Throws:
java.lang.Throwable

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