jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barrie Treloar <>
Subject Re: JavaSamplerContext has no access to the JMeterContext - is this by design?
Date Thu, 14 Apr 2011 01:31:18 GMT
On Wed, Apr 13, 2011 at 9:14 PM, sebb <> wrote:
> On 13 April 2011 08:02, Barrie Treloar <> wrote:
>> I was looking for a way to find out the ThreadGroup name and google
>> shows that you can pull this out of BeanShell via
>> ${__BeanShell(ctx.getThreadGroup().getName())}
>> Is there a reason why JavaSamplerContext doesn't have access to the
>> JMeterContext?
>> Is it because Java can call the methods directly, i.e.
>>   JMeterContextService.getContext().getThreadGroup().getName();
> Yes.
>> Would it make sense to include this in JavaSamplerContext?
> Can't see the point.

Other than it wasn't obvious to a n00b like me and it was only by
looking at the code could I figure out what I needed.

I understand I'm a minority since we are using the Java samplers, and
I'm happy that google will archive this for future reference.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message