net.sf.jameleon.ant
Class ExecuteTestCaseTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by net.sf.jameleon.ant.ExecuteTestCaseTask

public class ExecuteTestCaseTask
extends org.apache.tools.ant.Task


Field Summary
protected  LinkedList contextVariables
           
protected static String DASH
           
protected  boolean debug
           
protected  LinkedList environmentSettings
           
protected  LinkedList fileSets
           
protected static String LB
           
protected  boolean printTestSuiteSummary
           
protected  boolean throwExceptionOnFailure
           
protected static String US
           
protected  long waitTimeBetweenScripts
           
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
ExecuteTestCaseTask()
           
 
Method Summary
 void addConfig(org.apache.tools.ant.types.Parameter parameter)
          Adds a setting to jameleon.conf
 void addFileset(org.apache.tools.ant.types.FileSet set)
          Ant's <fileset> definition.
 void addVariable(org.apache.tools.ant.types.Parameter parameter)
          Adds a variable to be set in the context
 void execute()
          Jameleon's implementation of Task.execute().
 void setDebug(boolean debug)
           
protected  void setEnvironmentVariables(List environmentSettings)
           
protected  void setParametersInContext(Map contextVars)
           
 void setPrintTestSuiteSummary(boolean printTestSuiteSummary)
           
 void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
           
 void setWaitTimeBetweenScripts(long waitTimeBetweenScripts)
           
protected  void validateOptions()
          Validate required options are set.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileSets

protected final LinkedList fileSets

LB

protected static final String LB

DASH

protected static final String DASH

US

protected static final String US

debug

protected boolean debug

throwExceptionOnFailure

protected boolean throwExceptionOnFailure

printTestSuiteSummary

protected boolean printTestSuiteSummary

waitTimeBetweenScripts

protected long waitTimeBetweenScripts

contextVariables

protected final LinkedList contextVariables

environmentSettings

protected final LinkedList environmentSettings
Constructor Detail

ExecuteTestCaseTask

public ExecuteTestCaseTask()
Method Detail

execute

public final void execute()
                   throws org.apache.tools.ant.BuildException
Jameleon's implementation of Task.execute().

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException - If anything goes wrong.

setPrintTestSuiteSummary

public void setPrintTestSuiteSummary(boolean printTestSuiteSummary)

setThrowExceptionOnFailure

public void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)

setDebug

public void setDebug(boolean debug)

setWaitTimeBetweenScripts

public void setWaitTimeBetweenScripts(long waitTimeBetweenScripts)

addVariable

public void addVariable(org.apache.tools.ant.types.Parameter parameter)
Adds a variable to be set in the context

Parameters:
parameter - a name/value parameter.

addConfig

public void addConfig(org.apache.tools.ant.types.Parameter parameter)
Adds a setting to jameleon.conf

Parameters:
parameter - a name/value parameter.

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
Ant's <fileset> definition. To define the files to parse.

Parameters:
set - a fileset to add

validateOptions

protected void validateOptions()
                        throws org.apache.tools.ant.BuildException
Validate required options are set.

Throws:
org.apache.tools.ant.BuildException - if a fileset isn't set.

setParametersInContext

protected void setParametersInContext(Map contextVars)

setEnvironmentVariables

protected void setEnvironmentVariables(List environmentSettings)


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.