Thread Exchange Counter between Jmeter Threads

I want to create a thread group in jmeter to create users and their devices with many (e.g. 5000) devices.

I have no problem creating this test, and I want the username and device to be in order.

1. user1--device1 
2. user2--device2
3. user3--device3

I already created a test, but to create 5,000 users and devices in the same thread group, I need to run 5,000 iterations of 3 requests each, using 1 thread, because otherwise I have the same username that is repeated by several threads (for example with 3 threads)

1. user1--device1 
2. user2--device2 
3. user3--device3 
4. user1--device1
5. user2--device2
6. user3--device3
7. user1--device1
8. user2--device2    
9. user3--device3

: , 5000 / (, 20 ). , , 20 , , .

!

http://pastebin.com/S1izFC9r

, , , maximun 9 devices (counter_max), . , ,

  • thread1 - user1-device1
  • thread2 - user2 - device2
  • thread3 - user3 - device3
  • thread1 - user4 - device4
  • thread2 - USER5 - device5
  • thread3 - user6 - device6
  • thread1 - user7 - device7
  • thread2 - user8 - device8
  • thread3 - User9 - device9
+4
1

, , __ counter() "global" , : ${__counter(FALSE,)}

  • __counter()
  • ""

Counter global demo

, , , .

. JMeter "counter".

+1

Source: https://habr.com/ru/post/1651166/


All Articles