frgirard commented on issue #5733:
URL: https://github.com/apache/jmeter/issues/5733#issuecomment-1318467136
Ok it seems to work, but I had to put the loop in a teardown threadgroup.
I'm using SampleResult.setStartTime() and SampleResult.setEndTime().
However, it rises an exception on every loop :
`2022-11-17 12:02:39,362 ERROR o.a.j.s.SampleResult: sampleEnd called twice
java.lang.Throwable: Invalid call sequence
at
org.apache.jmeter.samplers.SampleResult.sampleEnd(SampleResult.java:1147)
~[ApacheJMeter_core.jar:5.5]
at
org.apache.jmeter.protocol.java.sampler.JSR223Sampler.sample(JSR223Sampler.java:82)
~[ApacheJMeter_java.jar:5.5]
at
org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651)
~[ApacheJMeter_core.jar:?]
at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570)
~[ApacheJMeter_core.jar:?]
at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501)
~[ApacheJMeter_core.jar:?]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268)
~[ApacheJMeter_core.jar:?]
at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_345]
`
Any idea on how I could fix that ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]