Vladyslav K
Vladyslav K

Reputation: 2626

SoapUI how to hide password from request body

In SoapUI (I am using 5.2.1) one of requests is login. I have to pass username and password as element values in xml. Is there a way to hide my password from being displayed as plain text in request body?

Upvotes: 2

Views: 2569

Answers (1)

Rao
Rao

Reputation: 21379

Yes, it is possible to mask the password.

In order to achieve that:

  • create a test case level custom property, and property name, say PASSWORD then provide the value which will mask the value once you hit return key.
  • in the request, where the value is required use ${#TestCase#PASSWORD} if test case level property is used.
  • it is also possible to define PASSWORD property at project level as well, so that you can avoid creating property for each test case. In that case, request should have the value ${#Project#PASSWORD}.

Hope this helps.

Upvotes: 4

Related Questions