jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 61674] New: Introduce global Variables shared accross threads
Date Fri, 27 Oct 2017 07:07:11 GMT

            Bug ID: 61674
           Summary: Introduce global Variables shared accross threads
           Product: JMeter
           Version: 3.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
  Target Milestone: ---

There is frequently the need in Load Testing for sharing something accross
threads which might have been initialized in a setup Thread Group or by some

Currently JMeter has 2 ways to do it:

- Properties but they are limited to String
- Through Beanshell (which is deprecated) through bsh.shared

A recent illustration of this is the Coverage Tests created for JMS, TCP and
To do it we had to use Beanshell.

So after discussion:

This would be introduced this way:

- any variable starting with "global:" is global
- JMeterVariables class modification, which would delegate all variables with
"global:" prefix into global thread-safe map.
- The Map would be ConcurrentMap
- It would be initialized/cleared in StandardJMeterEngine#run or

See dev discussion:

You are receiving this mail because:
You are the assignee for the bug.
View raw message