jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: Having a globalVariables shared accross threads
Date Fri, 27 Oct 2017 07:07:52 GMT
Created :
https://bz.apache.org/bugzilla/show_bug.cgi?id=61674

for follow up.

I don't have time for now to work on it, will probably due in a month,
meanwhile any volunteer is welcome to propose a PR.

Regards

On Fri, Oct 27, 2017 at 9:03 AM, Philippe Mouawad <
philippe.mouawad@gmail.com> wrote:

> Hello Andrey,
> I like the proposals:
>
> - any variable starting with "global:" is global
> - JMeterVariables class modification, which would delegate all variables
> with "global:" prefix into global thread-safe map.
>
>
> Thanks for your ideas !
> Regards
>
> On Tue, Oct 24, 2017 at 2:48 PM, Andrey Pokhilko <apc4@ya.ru> wrote:
>
>> No, I don't ask about GUI elements (although it would make it easier for
>> newbie users). I mean a consistent and transparent behavior when not
>> only accessing, but also setting variable with prefix "global:" puts it
>> into global set. Thus, users would get simple, obvious and consistent
>> way to work with global and local variables.
>>
>> Implementation-wise it will be Variables class modification, which would
>> delegate all variables with "global:" prefix into global thread-safe map.
>>
>> Andrey Pokhilko
>>
>> 24.10.2017 15:11, Vladimir Sitnikov пишет:
>> > Andrey>Requiring JSR233 each time I want to use global variable sounds
>> as a
>> > bit of overkill.
>> >
>> > Do you expect "putIfAbsent" or even "compareAndSet" UI elements? :)
>> >
>> > Andrey>I would seriously think of some naming convention, like "any
>> variable
>> > starting with "global:" is global. Like ${global:myHostName} etc.
>> >
>> > +1
>> > Alternative (or additional) option might be an explicit variable
>> > declaration.
>> >
>> > Vladimir
>> >
>>
>>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>
>
>


-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message