-
Hi, I would like to ask if there are any plans to implement Synchronizing Timer known from JMeter. I want to send multiple requests simultaneously in batches. I know that JMeter allows to synchronize the execution time of the requests using the mentioned timer. Here are two cases illustrating the problem and expected behavior: Sample 1 – 2 threads, 3 iterations, Same user on each iteration, no delayThe same effect will be achieved using JMeter DSL - requests are not synchronized (which is perfectly fine when there are no Synchronizing Timer) @Test
public void test1() throws IOException {
testPlan(
threadGroup(2, 3,
httpSampler("HTTP Request [${__threadNum}-${__counter(TRUE,)}]","https://restcountries.com/v3.1/all")
.children(
jsr223PostProcessor(s -> s.log.warn(String.valueOf(System.currentTimeMillis()) +
" | " + String.valueOf(s.prev.getConnectTime())))
)
)
).run();
} Sample 2 – 2 threads, 3 iterations, the same user on each iteration, no delay, with Synchronizing TimerAs you can see the parallel requests start at the same time (with millisecond accuracy) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hello, thank you for bringing this into attention, and providing good context and explanation! Do you usually just use it with properties set to 0 (number of threads to wait for, and timeout to wait for)? Or do you at some scenarios actually set values for these two properties? |
Beta Was this translation helpful? Give feedback.
-
To be honest I don’t use „Ramp-up period” set to 0 very oftent. Also the „Timeout in miliseconds” from Synchronizing timer is not used by me fequently, because i always know the numer of executed threads. Nevertheless, this parameter is crucial. |
Beta Was this translation helpful? Give feedback.
-
Hello, We just released a new version which adds Here is the new user guide section. Regards |
Beta Was this translation helpful? Give feedback.
Hello,
We just released a new version which adds
synchronizingTimer
to the DSL.Here is the new user guide section.
Regards