AliRıza Adıyahşi
AliRıza Adıyahşi

Reputation: 15866

How to define email address with Jmeter user defined variables?

Problem: In email address @ replaced by %40.

http header manager:

enter image description here

user defined variables:

enter image description here

http request:

enter image description here

and result tree:

enter image description here

I have researched about this, and they say that, if http method is POST, then it should encoded automatically. But It does not encoded automatically. Any advice, how can I resolve this?

Note: Jmeter version : 3.1 and I am trying to test a rest service.

Upvotes: 0

Views: 209

Answers (3)

AliRıza Adıyahşi
AliRıza Adıyahşi

Reputation: 15866

I found the answer. @PoorvajaDeshmukh's answer suggest me. Like following (correct defination of body data);

enter image description here

I also tried @DmitriT's suggestion, but I did not work. Thanks for advices...

Upvotes: 0

Dmitri T
Dmitri T

Reputation: 168197

Change "Implementation" of your HTTP Request sampler to Java

JMeter HTTP Client Implementation

If you need to change it for more than one sampler - it makes sense to define the setting using HTTP Request Defaults.

Upvotes: 0

Poorvaja Deshmukh
Poorvaja Deshmukh

Reputation: 129

Please try sending data in Body data instead of sending it in parameters.

enter image description here

enter image description here

Upvotes: 1

Related Questions