jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barrie Treloar <baerr...@gmail.com>
Subject JavaSamplerContext has no access to the JMeterContext - is this by design?
Date Wed, 13 Apr 2011 07:02:44 GMT
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();

Would it make sense to include this in JavaSamplerContext?

Cheers
Barrie

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message