问题
I am using JMeter to load test some pages that reside in a SharePoint 2007 Site. The farm that contains the pages resides in a different domain than the machine running the test, and uses Windows Authenticiation. The connection to the server is over an unencrypted (non-SSL) connection. Because of this, I need to pass login credentials to the server.
How do I configure JMeter to login to the server using windows authentication?
回答1:
Try this
Edit based on the reply: new link Scroll down to the Parameters section,
- Username The username to authorize.
- Password The password for the user.
- Domain The domain to use for NTLM.
- Realm The realm to use for NTLM.
回答2:
make sure to use http sampler=JAVA
回答3:
Add HTTP Authorization Manager to the Thread Group.
Using [domain]username[@realm] as your Windows login example.
BASE URL: [yourdomainurl]
USERNAME: [domain\username] <- UPPERCASE ONLY
PASSOWORD: [password]
This work for my case.
来源:https://stackoverflow.com/questions/1793649/jmeter-with-windows-authentication