org.apache.jmeter.protocol.java.sampler

Class BeanShellSampler

Implemented Interfaces:
Cloneable, Sampler, Serializable, TestElement, TestListener, ThreadListener

public class BeanShellSampler
extends BeanShellTestElement
implements Sampler

A sampler which understands BeanShell

Field Summary

static String
FILENAME
static String
INIT_FILE
static String
PARAMETERS
static String
RESET_INTERPRETER
static String
SCRIPT

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

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Method Summary

String
getFilename()
protected String
getInitFileProperty()
String
getLabel()
Returns a formatted string label describing this sampler
String
getParameters()
String
getScript()
boolean
isResetInterpreter()
SampleResult
sample(Entry e)

Methods inherited from class org.apache.jmeter.util.BeanShellTestElement

clone, getBeanShellInterpreter, getFilename, getInitFileProperty, getParameters, getScript, isResetInterpreter, processFileOrScript, readResolve, setFilename, setParameters, setResetInterpreter, setScript, testEnded, testEnded, testIterationStart, testStarted, testStarted, threadFinished, threadStarted

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

FILENAME

public static final String FILENAME

INIT_FILE

public static final String INIT_FILE

PARAMETERS

public static final String PARAMETERS

RESET_INTERPRETER

public static final String RESET_INTERPRETER

SCRIPT

public static final String SCRIPT

Method Details

getFilename

public String getFilename()
Overrides:
getFilename in interface BeanShellTestElement

getInitFileProperty

protected String getInitFileProperty()
Overrides:
getInitFileProperty in interface BeanShellTestElement

getLabel

public String getLabel()
Returns a formatted string label describing this sampler
Returns:
a formatted string label describing this sampler

getParameters

public String getParameters()
Overrides:
getParameters in interface BeanShellTestElement

getScript

public String getScript()
Overrides:
getScript in interface BeanShellTestElement

isResetInterpreter

public boolean isResetInterpreter()
Overrides:
isResetInterpreter in interface BeanShellTestElement

sample

public SampleResult sample(Entry e)
Specified by:
sample in interface Sampler

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