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

--- Comment #9 from [email protected] ---
Hi,

I've made the changes and compiled jmeter 5.2.1
There only change now is that warning is raised in logs for negative number,
but no 'hard' notification is sent to the user about the problem.

Instead the warning for negative number it would be better to rise error; still
problems for two other cases are not seen in the logs.

Here are the logs:

case 1 (empty value):
2020-11-22 15:55:58,072 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2020-11-22 15:55:58,073 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2020-11-22 15:55:58,076 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2020-11-22 15:55:58,226 INFO o.a.j.e.StandardJMeterEngine: Starting
ThreadGroup: 1 : case1
2020-11-22 15:55:58,226 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads
for group case1.
2020-11-22 15:55:58,226 INFO o.a.j.e.StandardJMeterEngine: Thread will continue
on error
2020-11-22 15:55:58,227 INFO o.a.j.t.ThreadGroup: Starting thread group...
number=1 threads=1 ramp-up=1 delayedStart=false
2020-11-22 15:55:58,227 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2020-11-22 15:55:58,227 INFO o.a.j.e.StandardJMeterEngine: All thread groups
have been started
2020-11-22 15:55:58,231 INFO o.a.j.t.JMeterThread: Thread started: case1 1-1

case 2 (negative number):
2020-11-22 15:57:54,074 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2020-11-22 15:57:54,074 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2020-11-22 15:57:54,075 WARN o.a.j.t.ConstantThroughputTimerBeanInfo: Number
must not be less than zero: [-1.0]
2020-11-22 15:57:54,075 WARN o.a.j.t.TestBeanHelper: Invalid value [-1.0] for
property [throughput]
2020-11-22 15:57:54,075 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2020-11-22 15:57:54,227 INFO o.a.j.e.StandardJMeterEngine: Starting
ThreadGroup: 1 : case2
2020-11-22 15:57:54,227 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads
for group case2.
2020-11-22 15:57:54,227 INFO o.a.j.e.StandardJMeterEngine: Thread will continue
on error
2020-11-22 15:57:54,227 INFO o.a.j.t.ThreadGroup: Starting thread group...
number=1 threads=1 ramp-up=1 delayedStart=false
2020-11-22 15:57:54,228 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2020-11-22 15:57:54,228 INFO o.a.j.e.StandardJMeterEngine: All thread groups
have been started
2020-11-22 15:57:54,229 INFO o.a.j.t.JMeterThread: Thread started: case2 1-1
2020-11-22 15:57:54,230 WARN o.a.j.t.ConstantThroughputTimerBeanInfo: Number
must not be less than zero: [-1.0]
2020-11-22 15:57:54,231 WARN o.a.j.t.TestBeanHelper: Invalid value [-1.0] for
property [throughput]
2020-11-22 15:57:54,231 INFO o.a.j.t.JMeterThread: Thread is done: case2 1-1
2020-11-22 15:57:54,232 INFO o.a.j.t.JMeterThread: Thread finished: case2 1-1
2020-11-22 15:57:54,232 INFO o.a.j.e.StandardJMeterEngine: Notifying test
listeners of end of test
2020-11-22 15:57:54,232 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false,
*local*)


case 3 (string value):
2020-11-22 15:58:42,568 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2020-11-22 15:58:42,568 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2020-11-22 15:58:42,571 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2020-11-22 15:58:42,708 INFO o.a.j.e.StandardJMeterEngine: Starting
ThreadGroup: 1 : case3
2020-11-22 15:58:42,709 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads
for group case3.
2020-11-22 15:58:42,709 INFO o.a.j.e.StandardJMeterEngine: Thread will continue
on error
2020-11-22 15:58:42,709 INFO o.a.j.t.ThreadGroup: Starting thread group...
number=1 threads=1 ramp-up=1 delayedStart=false
2020-11-22 15:58:42,709 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2020-11-22 15:58:42,709 INFO o.a.j.e.StandardJMeterEngine: All thread groups
have been started
2020-11-22 15:58:42,710 INFO o.a.j.t.JMeterThread: Thread started: case3 1-1

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

Reply via email to