How to send unique data for each stream in jmeter

I use jmeter to test my REST API for 10,000 hits, for which every http hit will store some data in the database. I followed the test plan below

enter image description here

I run 10 threads in parallel with a rise time of 20 s each and a 1000 loop to achieve the same.

enter image description here

But the problem is that my streams do not accept a unique dataset. While my internal HTTP URL expects a unique string for every http hit.

Now I have tried the following approaches.

  1. A single CSV dataset configuration with 10,000 unique values, and all streams in stream groups read the same data.

  2. CSV csv , $ {__ threadNum}.csv

  3. jmeter _RandomString http, http

{ "tenantName": "$ {__RandomString(15, abcdefghijklmnofqrst1234567 # @#% ^ & ; *)}"}

  1. BeanShell java HTTP Request.

. 2 HTTP-URL. http. .

, http ?

- .

EDIT:

CSV :

enter image description here

HTTP-:

enter image description here


CSV:

enter image description here

+5
6

Ubik DmitrT, CSV- OUTSIDE . .

+2

CSV - , csv ?

, " EOF" "", , .

?

HTTP-?

01 2015 :

  • csv , tenantName

ib fileName \by\/

+1

, , , __ UUID() .

GUID , , , .

JMeter . JMeter

+1

. UUID . , UUID, .

( ) Beanshell. , , UUID, put "vars". .

: ,

String uniqueId = "${__UUID()}";
vars.put("accountId", uniqueId);

, !

0

csv " ", . CSV , .

0

All Articles