Bug 57962

Summary: BackendListener: Allow implementations to get sample_variables
Product: JMeter Reporter: Deepak Shetty <shettyd>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: REOPENED ---    
Severity: enhancement CC: jz5168, p.mouawad, ra0077
Priority: P1    
Version: 2.13   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Deepak Shetty 2015-05-28 01:35:39 UTC
Most listeners allow variables to be saved using sample_variables in jmeter.properties. However there seems to be no way to do the same in implementations of the BackendListener interface. Maybe the SampleResult class should also have a copy of the variable values or the interface method should have a copy of the variables object.
Comment 1 Philippe Mouawad 2017-04-26 19:06:30 UTC
*** Bug 60133 has been marked as a duplicate of this bug. ***
Comment 2 Yamini 2017-06-02 20:15:43 UTC
Hi,

Even I am having same issue with 3.2 version.
Is there any workaround to set the property value in slave node for backend listener.

Thanks,
Yamini.
Comment 3 mchassagneux 2017-06-07 13:28:19 UTC
Fix in 1797920
Comment 4 Philippe Mouawad 2017-06-11 20:20:47 UTC
Author: pmouawad
Date: Sun Jun 11 20:13:21 2017
New Revision: 1798400

URL: http://svn.apache.org/viewvc?rev=1798400&view=rev
Log:
Allow to use variables ( from User Defined Variables only ) in all listeners in slave mode
Try to make code of PreCompiler more readable

Bugzilla Id: 57962

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/engine/PreCompiler.java
    
Author: pmouawad
Date: Sun Jun 11 20:19:54 2017
New Revision: 1798401

URL: http://svn.apache.org/viewvc?rev=1798401&view=rev
Log:
Allow to use variables ( from User Defined Variables only ) in all listeners in slave mode
Renamve method to make it clearer

Bugzilla Id: 57962

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java
Comment 5 Philippe Mouawad 2017-06-11 20:31:58 UTC
Author: pmouawad
Date: Sun Jun 11 20:30:40 2017
New Revision: 1798402

URL: http://svn.apache.org/viewvc?rev=1798402&view=rev
Log:
Allow to use variables ( from User Defined Variables only ) in all listeners in slave mode
Rename method to make it clearer

Bugzilla Id: 57962

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java
Comment 6 Philippe Mouawad 2017-06-11 20:59:44 UTC
Author: pmouawad
Date: Sun Jun 11 20:57:38 2017
New Revision: 1798405

URL: http://svn.apache.org/viewvc?rev=1798405&view=rev
Log:
Allow to use variables ( from User Defined Variables only ) in all listeners in slave mode
Try to secure exposed JMeterVariables
Bugzilla Id: 57962

Added:
    jmeter/trunk/src/core/org/apache/jmeter/threads/UnmodifiableJMeterVariables.java   (with props)
Modified:
    jmeter/trunk/src/core/org/apache/jmeter/engine/ClientJMeterEngine.java
    jmeter/trunk/src/core/org/apache/jmeter/engine/PreCompiler.java
    jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java
    jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java
Comment 7 Philippe Mouawad 2017-06-11 21:36:19 UTC
Requires either JUnit or batch test