Jordi
Jordi

Reputation: 23187

JMeter: conditional path into http request

I've created this user variables:

enter image description here

I'm using it, in order to build a conditional path into an Http Request:

enter image description here

I was expecting to request to http://localhost:8080/userlogin, instead of http://localhost:8080/1/userlogin.

enter image description here

Upvotes: 1

Views: 72

Answers (1)

Ori Marko
Ori Marko

Reputation: 58774

__P default value is 1

Unlike the __property function, there is no option to save the value in a variable, and if no default value is supplied, it is assumed to be 1

So in your case use __property instead

Upvotes: 1

Related Questions