# Deprecated API

## Contents

- Interfaces
- Classes
- Methods
- Constructors

Deprecated Interfaces
Interface
Description
org.apache.jmeter.testelement.TestListener
since 2.8, please use `TestStateListener` and/or `TestIterationListener`

Deprecated Classes
Class
Description
org.apache.jmeter.protocol.http.modifier.UserParameterXMLParser
This test element is deprecated. Test plans should use User Parameters instead.
org.apache.jmeter.protocol.system.NativeCommand
(2.10) use `SystemCommand` instead

Deprecated Methods
Method
Description
org.apache.jmeter.control.GenericController.reInitializeSubController()
replaced by GeneriController#initializeSubControllers
org.apache.jmeter.protocol.http.proxy.ProxyControl.setSamplerTypeName(int)
org.apache.jmeter.samplers.SampleResult.setResponseData(String)
- only intended for use from BeanShell code
org.apache.jmeter.save.SaveService.loadTree(InputStream)
use `SaveService` `SaveService.loadTree(File)`
org.apache.jmeter.testbeans.TestBeanHelper.prepare(TestElement)
to limit it's usage in expectation of moving it elsewhere.
org.apache.jmeter.util.Calculator.addValue(long)
Use `Calculator.addSample(SampleResult)` instead
org.apache.jmeter.util.JMeterUtils.getResString(String, String)
Only intended for use in development; use getResString(String) normally
org.apache.jmeter.visualizers.StatVisualizer.testFunctors()
- only for use in testing
org.apache.jmeter.visualizers.SummaryReport.testFunctors()
- only for use in testing
org.apache.jorphan.reflect.Functor.checkMethod(Object)
** for use by Unit test code only **
org.apache.jorphan.reflect.Functor.checkMethod(Object, Class<?>)
** for use by Unit test code only **

Deprecated Constructors
Constructor
Description
org.apache.jmeter.assertions.AssertionResult()
- use the named constructor
org.apache.jmeter.assertions.CompareAssertionResult()
Use the other ctor
org.apache.jmeter.control.TransactionSampler()
only for use by test code
org.apache.jmeter.exceptions.IllegalUserActionException()
- use IllegalUserActionException(String)
org.apache.jmeter.gui.MainFrame()
Do not use - only needed for JUnit tests
org.apache.jmeter.gui.tree.JMeterTreeModel(Object)
- only for use by JMeter class!
org.apache.jmeter.gui.UndoHistoryItem()
DO NOT USE
org.apache.jmeter.gui.util.JLabeledRadioI18N()
- only for use in testing
org.apache.jmeter.gui.util.JSyntaxTextArea()
org.apache.jmeter.gui.util.JTextScrollPane()
org.apache.jmeter.protocol.http.config.MultipartUrlConfig()
only for use by unit tests
org.apache.jmeter.protocol.tcp.sampler.ReadException()
For use by test code only (serialisation tests)
org.apache.jmeter.samplers.AsynchSampleSender()
only for use by test code
org.apache.jmeter.samplers.BatchSampleSender()
only for use by test code
org.apache.jmeter.samplers.DataStrippingSampleSender()
only for use by test code
org.apache.jmeter.samplers.DiskStoreSampleSender()
only for use by test code
org.apache.jmeter.samplers.HoldSampleSender()
only for use by test code
org.apache.jmeter.samplers.StandardSampleSender()
only for use by test code
org.apache.jmeter.samplers.StatisticalSampleResult(long, long)
Needs to be replaced when multiple sample results are sorted out
org.apache.jmeter.samplers.StatisticalSampleResult(SampleResult, boolean)
no longer necessary; use `StatisticalSampleResult(SampleResult)` instead
org.apache.jmeter.samplers.StatisticalSampleSender()
only for use by test code
org.apache.jmeter.testbeans.gui.FileEditor()
Only for use by test cases
org.apache.jmeter.testbeans.gui.GenericTestBeanCustomizer()
only for use by test code
org.apache.jmeter.testbeans.gui.TestBeanGUI()
Dummy for JUnit test purposes only
org.apache.jmeter.visualizers.MonitorGraph()
Only for use in unit testing
org.apache.jmeter.visualizers.MonitorHealthPanel()
Only for use in unit testing
org.apache.jmeter.visualizers.MonitorPerformancePanel()
Only for use in unit testing
org.apache.jmeter.visualizers.ServerPanel()
Only for use in unit testing
org.apache.jmeter.visualizers.TableSample()
for unit test code only
org.apache.jmeter.visualizers.XMLDefaultMutableTreeNode()
only for use by test code