user1788294
user1788294

Reputation: 1893

JMETER- Hide password value and a key value in User Defined Varialble

I am new to JMETER. I have the password and a key value set as the User Defined Variable.

Question is how to hide it. Say if password is 123456 then replace it by **

Upvotes: 2

Views: 4117

Answers (1)

vins
vins

Reputation: 15370

Actually there is NO direct way to do it. You can raise an enhancement request!

If your sampler has the 'Username', 'Password' fields you can use Login Config Element (not 'uname' etc).

enter image description here

But - if you open the .jmx file in your Text Editor - You can see the Password you have set. Not good!!

enter image description here Approach 1:

Pass the Password via command line like a property. Access it with __P()

Approach 2:

You can store the encrypted password - decrypt it with Beanshell preprocessor.

But - still - 'View Results Tree' might show the passwords if you access it.

Upvotes: 1

Related Questions