public class TestAction extends AbstractSampler implements Interruptible
Modifier and Type | Field and Description |
---|---|
static int |
BREAK_CURRENT_LOOP
Break Current Loop
|
static int |
PAUSE |
static int |
RESTART_NEXT_LOOP
Start next iteration of Thread Loop
|
static int |
START_NEXT_ITERATION_CURRENT_LOOP
Start next iteration of Current Loop
|
static int |
STOP |
static int |
STOP_NOW |
static int |
TEST |
static int |
THREAD |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
TestAction() |
Modifier and Type | Method and Description |
---|---|
boolean |
applies(ConfigTestElement configElement)
Does configElement apply to Sampler
|
int |
getAction() |
String |
getDurationAsString() |
int |
getTarget() |
boolean |
interrupt()
Interrupt the current operation if possible.
|
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) |
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addTestElement, canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
public static final int STOP
public static final int PAUSE
public static final int STOP_NOW
public static final int RESTART_NEXT_LOOP
public static final int START_NEXT_ITERATION_CURRENT_LOOP
public static final int BREAK_CURRENT_LOOP
public static final int THREAD
public static final int TEST
public SampleResult sample(Entry e)
public void setTarget(int target)
public int getTarget()
public void setAction(int action)
public int getAction()
public void setDuration(String duration)
public String getDurationAsString()
public boolean applies(ConfigTestElement configElement)
AbstractSampler
applies
in interface ConfigMergabilityIndicator
applies
in class AbstractSampler
configElement
- ConfigTestElement
AbstractSampler.applies(org.apache.jmeter.config.ConfigTestElement)
public boolean interrupt()
Interruptible
interrupt
in interface Interruptible
true
if there was an operation to interrupt.Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.