org.apache.jmeter.sampler

Class TestAction

Implemented Interfaces:
Cloneable, Sampler, Serializable, TestElement

public class TestAction
extends AbstractSampler

Dummy Sampler used to pause or stop a thread or the test; intended for use in Conditional Controllers.

Field Summary

static int
PAUSE
static int
STOP
static int
STOP_NOW
static int
TEST
static int
THREAD

Fields inherited from interface org.apache.jmeter.testelement.TestElement

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Constructor Summary

TestAction()

Method Summary

int
getAction()
String
getDurationAsString()
int
getTarget()
SampleResult
sample(Entry e)
Obtains statistics about the given Entry, and packages the information into a SampleResult.
void
setAction(int action)
void
setDuration(String duration)
void
setTarget(int target)

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty

Field Details

PAUSE

public static final int PAUSE
Field Value:
1

STOP

public static final int STOP
Field Value:
0

STOP_NOW

public static final int STOP_NOW
Field Value:
2

TEST

public static final int TEST
Field Value:
2

THREAD

public static final int THREAD
Field Value:
0

Constructor Details

TestAction

public TestAction()

Method Details

getAction

public int getAction()

getDurationAsString

public String getDurationAsString()

getTarget

public int getTarget()

sample

public SampleResult sample(Entry e)
Obtains statistics about the given Entry, and packages the information into a SampleResult.
Specified by:
sample in interface Sampler

setAction

public void setAction(int action)

setDuration

public void setDuration(String duration)

setTarget

public void setTarget(int target)

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.