https://bz.apache.org/bugzilla/show_bug.cgi?id=64367

            Bug ID: 64367
           Summary: UDV defined in test plan failed to be expanded in
                    distributed testing mode
           Product: JMeter
           Version: 5.2.1
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: JMETER_5.3.0

Created attachment 37184
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37184&action=edit
test plan

I defined a UDV in root element of the test plan as follows:
name:  BASE_FILENAME    
value: 
${__TestPlanName}_${__P(NUM_THREAD,0)}threads_${__P(NUM_LOOP,0)}trans_${__P(TPS_MIN,0)}tpm_${__Random(0,10000)}

There is a "Simple Data Writer" listener in the test plan which refer to the
variable as a file name which saved requests and responses, I ran the test with
following commands:
//local mode
jmeter.bat -n -t http_bing.jmx -l http_bing.csv -JNUM_THREAD=2 -JNUM_LOOP=5
-JTPS_MIN=1800 -JTIME_RAMPUP=1 
//distributed mode, -R option follows two IP address of JMeter-server
jmeter.bat -n -t http_bing.jmx -l http_bing.csv -R "172.17.96.4,172.17.119.6"
-GNUM_THREAD=2 -GNUM_LOOP=5 -GTPS_MIN=1800 -GTIME_RAMPUP=1 

I found that the variable failed to be expanded in distributed testing mode and
it produced a result file
"${__TestPlanName}_${__P(NUM_THREAD,0)}threads_${__P(NUM_LOOP,0)}trans_${__P(TPS_MIN,0)}tpm_${__Random(0,10000)}.xml",
but it was expanded successfully in local mode testing and produced a file
http_bing.jmx_2threads_5trans_1800tpm_807.xml

I guess it may a bug in variable expansion.

JMeter version: 2.5.1
Java version: 1.8.0_161
OS version: windows 10
JMX file: see attachment http_bing.jmx

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to