org.apache.jmeter.examples.testbeans.example1

Class Example1

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

public class Example1
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)
Obtains statistics about the given Entry, and packages the information into a SampleResult.
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)
Obtains statistics about the given Entry, and packages the information into a SampleResult.
Specified by:
sample in interface Sampler

setMyStringProperty

public void setMyStringProperty(String s)

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