org.apache.jmeter.examples.testbeans.example2

Class Example2

Implemented Interfaces:
Cloneable, Sampler, Serializable, TestBean, TestElement

public class Example2
extends AbstractSampler
implements TestBean

This TestBean is just an example about how to write testbeans. The intent is to demonstrate usage of the TestBean features to podential TestBean developers. Note that only the class's introspector view matters: the methods do nothing -- nothing useful, in any case.

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

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Method Summary

String
getMyStringProperty()
SampleResult
sample(Entry e)
void
setMyStringProperty(String s)

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

Method Details

getMyStringProperty

public String getMyStringProperty()

sample

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

setMyStringProperty

public void setMyStringProperty(String s)

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