|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.canoo.webtest.ant.WebtestTask
public class WebtestTask
Ant task that specifies a Web Test Sequence.
| Field Summary | |
|---|---|
static String |
DEFAULT_REPORTER_CLASSNAME
|
static String |
REPORTER_CLASSNAME_PROPERTY
|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
WebtestTask()
|
|
| Method Summary | |
|---|---|
void |
addConfig(Configuration config)
Called by ant to add the nested "configuration ..." task. |
void |
addSteps(TestStepSequence steps)
Called by ant to add the nested "webtest ..." task. |
void |
addTask(Task task)
In a first time doesn't support other tasks as config and testSpec, but this class has to implement TaskContainer to work with Groovy's AntBuilder
(a bug in this AntBuilder?) |
protected void |
assertNotNull(Object parameter,
String[] msg)
|
protected void |
callSelectedReporter(String reporterClass,
RootStepResult result)
|
protected Configuration |
createDefaultConfiguration()
Creates the default configuration to use if no |
void |
execute()
Executes the task. |
protected void |
executeSteps()
Execute the nested steps (except the configuration) |
Configuration |
getConfig()
|
Map |
getDynamicProperties()
|
String |
getDynamicProperty(String name)
|
String |
getName()
gets the name of this webtest |
protected StepExecutionListener |
getResultBuilderListener()
TODO: check if it should really be accessible |
TestStepSequence |
getStepSequence()
|
static Context |
getThreadContext()
Gets the context to use for this thread. |
IWebtestCustomizer |
getWebtestCustomizer()
|
protected void |
logRunningTestInfo(String msg)
Log Start/Success/Failed to running.txt in results folder. |
protected void |
report(IResultReporter reporter,
RootStepResult result)
|
protected void |
setConfig(Configuration config)
|
void |
setDynamicProperty(String name,
String value)
|
void |
setName(String name)
|
void |
setProject(Project project)
|
static void |
setThreadContext(Context context)
Sets the context for this thread. |
protected void |
stopBuildIfNeeded(RootStepResult webTestResult,
Configuration config)
|
protected void |
writeTestReportIfNeeded(RootStepResult result)
|
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REPORTER_CLASSNAME_PROPERTY
public static final String DEFAULT_REPORTER_CLASSNAME
| Constructor Detail |
|---|
public WebtestTask()
| Method Detail |
|---|
public static Context getThreadContext()
Step.getContext().
null if not inside the execution of a webtest.public static void setThreadContext(Context context)
context - the context to set
public void setDynamicProperty(String name,
String value)
public String getDynamicProperty(String name)
public Map getDynamicProperties()
public void addConfig(Configuration config)
config - the configuration taskpublic void addTask(Task task)
TaskContainer to work with Groovy's AntBuilder
(a bug in this AntBuilder?)
addTask in interface TaskContainerTaskContainer.addTask(org.apache.tools.ant.Task)public void addSteps(TestStepSequence steps)
steps - the steps
public void execute()
throws BuildException
createDefaultConfiguration().
execute in class TaskBuildExceptionprotected void logRunningTestInfo(String msg)
msg - Start/Success/Failedprotected void executeSteps()
protected StepExecutionListener getResultBuilderListener()
protected Configuration createDefaultConfiguration()
protected void stopBuildIfNeeded(RootStepResult webTestResult,
Configuration config)
protected void assertNotNull(Object parameter,
String[] msg)
public void setName(String name)
name - public String getName()
protected void writeTestReportIfNeeded(RootStepResult result)
protected void callSelectedReporter(String reporterClass,
RootStepResult result)
protected void report(IResultReporter reporter,
RootStepResult result)
public Configuration getConfig()
protected void setConfig(Configuration config)
public void setProject(Project project)
setProject in class ProjectComponentpublic IWebtestCustomizer getWebtestCustomizer()
public TestStepSequence getStepSequence()
|
Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||