usersam
usersam

Reputation: 1245

Jmeter - how to use global CSV Data Set Config in Test Threads

In one of my Jmeter scripts (5.11), I am trying to use one CSV file for inputs for all test threads defined.

enter image description here

But when I execute the scripts and check for the request body, it takes the first row for both thread groups. My assumption was, it takes one row for each iteration, like for local CSV Data Set Config, under thread group. Please sugges why it is happing so and how to fix this.

Upvotes: 0

Views: 599

Answers (1)

Dmitri T
Dmitri T

Reputation: 168162

Set "Sharing Mode" to All threads, this way each thread will read next line on each iteration:

enter image description here

Demo (used __threadGroupName() and __threadNum() functions for visualization):

enter image description here

More information: CSV Data Set Config in Sharing Mode - Made Easy

Upvotes: 1

Related Questions