On 25 January 2011 12:45, Barrie Treloar <[email protected]> wrote:
> On Tue, Jan 25, 2011 at 10:43 PM, sebb <[email protected]> wrote:
>
>> > Why isn't this provided out of the box via the framework?
>>
>> They are different from all the other samplers in that they
>> (theoretically) allow one to provide additional parameters via the
>> GUI. All other samplers define the parameters that they are expecting.
>>
>> The  getDefaultParameters() method is what implementations use to
>> initialise the GUI, and in general that's all the parameters they
>> need.
>>
>> That is how the JavaTest and JavaSleep implementations work.
>>
>> I suppose it would be possible to write an implementation that could
>> handle additional arbitrary parameters, but I'm not aware of one that
>> uses this.
>>
>
> Ahh, well I'm happy with that explanation.
> I was trying to learn through experimentation and thus doing something I
> didn't know was not a supported use case.

Actually, it is mentioned in the user manual:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Java_Request

See the yellow box under the screenshot.

We should probably remove (or disable) them ...

> Obviously Java Sampler implementations need to define the interface for what
> parameters they expect.
> It didn't occur to me that the default parameters were the entire set of
> values, I just thought they were the ones that could have default values.

Yes, the Javadoc needs updating.
Patches welcome!

> On Thursday I'll add to the default parameters and see what happens.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to