jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Epp, J Wyatt" <>
Subject RE: Having a globalVariables shared accross threads
Date Tue, 31 Oct 2017 16:27:31 GMT
> -----Original Message-----
> From: Philippe Mouawad []
> Sent: Friday, 27 October, 2017 03:08
> To:
> Subject: Re: Having a globalVariables shared accross threads
> Created :

This is a good effort.  I think in the interest of usability it would be
preferable if the global: prefix wasn't needed, but maybe that can be addressed

As far as the implementation, I see this as complementary to the existing
UserDefinedVariables in the TestPlan, so wouldn't it be better to reuse the
existing valueReplacer infrastructure as much as possible for this effort?  (I
was going to suggest encoding the variable scope as part of the type, but it
looks like they're just simple key-value pairs (Map<String, String>). Oh well.)

Alternatively, it might be better to simply improve properties by exposing UI
and API for properly working with them.  Looking at the class definition for
JMeterVariables (from your proposal), the comment at the top of the module even

 * Class which defines JMeter variables.
 * These are similar to properties, but they are local to a single thread.

So unless there's some nuance I've missed, what you need already mostly exists,
but it has a bad workflow and some of the details need work.

... Actually, thinking of some things I've tried to do myself, I think the
ability to define and set properties dynamically, then use them with a similar
sort of shorthand as regular thread-local varibles would be even more potent
than simple global variables.  Please consider it.


Confidentiality Notice: This electronic message transmission, including any attachment(s),
may contain confidential, proprietary, or privileged information from Chemical Abstracts Service
("CAS"), a division of the American Chemical Society ("ACS"). If you have received this transmission
in error, be advised that any disclosure, copying, distribution, or use of the contents of
this information is strictly prohibited. Please destroy all copies of the message and contact
the sender immediately by either replying to this message or calling 614-447-3600.

View raw message