https://bz.apache.org/bugzilla/show_bug.cgi?id=62647
Bug ID: 62647
Summary: Functions not working in distributed mode
Product: JMeter
Version: 4.0
Hardware: PC
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 36107
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36107&action=edit
Function Test in Distributed Mode
I use functions in the attached test plan to generate values e.g.
${__TestPlanName} and ${__time(yyyyMMdd-HHmm)}
I use them in User Defined Values (see attached test plan) or as arguments in a
JSR223 pre/post processor and then call them in the main thread, it works as
expected:
2018-08-21 23:05:39,751 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
TEST STARTED!
2018-08-21 23:05:39,751 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
20180821-2305
2018-08-21 23:05:39,751 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
FunctionTest.jmx
2018-08-21 23:05:39,758 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
NEXT TEST
2018-08-21 23:05:39,758 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
20180821-2305
2018-08-21 23:05:39,758 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
FunctionTest.jmx
Now here comes the problem, if I take this file and run jmeter in distributed
mode, the functions are not evaluated!
2018-08-21 22:55:16,667 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
TEST STARTED!
2018-08-21 22:55:16,668 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
${__time(yyyyMMdd-HHmm)}
2018-08-21 22:55:16,668 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
${__TestPlanName}
2018-08-21 23:05:39,758 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
NEXT TEST
2018-08-21 22:55:16,701 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
${__time(yyyyMMdd-HHmm)}
2018-08-21 22:55:16,704 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
${__TestPlanName}
I tried running the test individually on each server and they work as expected.
However when I use jmeter-server it doesn’t work.
SSL keystore is disabled (server.rmi.ssl.disable=true) on the servers as we use
them internally.
Similar to this issue on the web:
https://stackoverflow.com/questions/29621261/jmeter-pvar-doesnt-work-during-remote-distributed-testing
--
You are receiving this mail because:
You are the assignee for the bug.