0
我正在嘗試爲受保護的端點執行基本身份驗證。我試過如下:JMeter使用HTTP授權管理器進行基本身份驗證
- 在HTTP報頭管理,名稱爲「授權」和值「基本[從上面的編碼憑據]」的建議在JMeter Basic Authentication
- 新增HTTP授權管理器並添加一個條目添加了
base url as https://shopping-qa.myproject.mydomain.com
以及用戶名和密碼。端點的網址是https://shopping-qa.myproject.mydomain.com/api/v3/profile/summary
。
雖然它的工作原理,當我使用選項1,它不會,當我使用選項2.我在jmeter.Properties
也取消註釋httpclient.parameters.file=httpclient.parameters
和http.authentication.preemptive$Boolean=true
在httpclient.parameters
工作。但我仍然沒有得到認證工作。
關於我哪裏出錯的建議? 謝謝!