smartrics/JMeterRestSampler — Issue #2: Does not work with JMeter 2.5.1
Author: llehtinen
Created: 2011-12-20 20:44:58+00:00
State: open

RestSampler stopped working when I upgraded to JMeter 2.5.1.

I tracked this down to an API incompatibility in HTTPSampler2 that was introduced to some extent inadvertently (http://markmail.org/message/ztzijaqlccgxz2wz).

This has been fixed by JMeter folks, see https://issues.apache.org/bugzilla/show_bug.cgi?id=52371

However, there was a call from RestSampler to its superclass' (HTTPSampler2) method setDefaultRequestHeaders, which has been completely removed. This method was empty, however, so all that's needed on RestSampler side is to remove the method call.