Bug 58279

Summary: Allow custom HTTP Sampler
Product: JMeter Reporter: Ryan <ryan>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 2.13   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Attachments: Patch allowing user to specify http sampler

Description Ryan 2015-08-24 14:45:56 UTC
Created attachment 33033 [details]
Patch allowing user to specify http sampler

It would be convenient to allow a custom HTTP sampler to be specified in the properties configuration.  

Leaving the sampler empty already uses the default specified in the properties file.  The attached patch uses the class specified in jmeter.properties as the sampler such as:
jmeter.httpsampler=com.example.MySampler

The custom sampler just needs to be in the classpath and it will be instantiated.  

Existing functionality which utilizes the jmeter.httpsampler property should continue to work as-is.