I am trying to do Basic Authentication for protected endpoints. I tried the following :
- In the HTTP Header Manager, add an entry with the name "Authorization" and the value "Basic [encoded credentials from above]" as suggested in JMeter Basic Authentication
- Added Http Authorization manager and added the
base url as https://shopping-qa.myproject.mydomain.com
along with the username and password. The url of the endpoint ishttps://shopping-qa.myproject.mydomain.com/api/v3/profile/summary
.
While it works when I use the option 1, it does not work when I use option 2. I also uncommented httpclient.parameters.file=httpclient.parameters
in jmeter.Properties
and http.authentication.preemptive$Boolean=true
in httpclient.parameters
. But I still do not get the authentication to work.
Any suggestions on where I am going wrong? Thank you!