user8930504
user8930504

Reputation: 11

JMeter - can not assign password variable correctly

I set username and password from CSV file user:sysadmin, pass:"Pass@123456" but password is encrypted wrong upon request

User=sysadmin&Pass=Pass%40123456

Upvotes: 1

Views: 928

Answers (2)

Dmitri T
Dmitri T

Reputation: 168002

The fact you see it as Pass@123456 doesn't necessarily mean that JMeter is sending wrong data, it might be either by intention due to string-based request representation in Raw form of request inspection in the View Results Tree listener or by accident (just a bug in it. You can check JMeter Issue Tracker to see whether similar issues were reported already)

In the mean time try switching to the HTTP tab of the View Results Tree listener:

JMeter View Results Tree

Or double check what you're sending using a sniffer tool like Fiddler or Wireshark

JMeter Wireshark Inspect Request

But first of all I would recommend verifying your CSV data via Debug Sampler or temporarily switching to hard-coded (not parameterized) data to see if it resolves your issue.

Upvotes: 2

Ori Marko
Ori Marko

Reputation: 58774

@ is encoded when sending HTTP request.

You need to add HTTP Header Manager with variable name Content-Type with value application/x-www-form-urlencoded, This will tell the server that the values need to be decoded

Upvotes: 1

Related Questions