Steve Wash
Steve Wash

Reputation: 986

Iterate through User Defined Array in JMeter

I'm trying to use a User Defined Variable as the Input variable in a ForEach Controller, but the HttpRequest inside the ForEach never fires.

enter image description here

enter image description here

Is userList not in scope? Do I need to make it an array?

Upvotes: 0

Views: 1144

Answers (1)

Dmitri T
Dmitri T

Reputation: 168072

ForEach Controller expects JMeter Variables to look like:

var_1
var_2
var_3

So you need to amend your User Defined Variables to look like

enter image description here

and ForEach Controller to look like:

enter image description here

this way you get what you're looking for:

enter image description here

Upvotes: 1

Related Questions