I'm unable to connect to the server via Jmeter.
While trying to connect via SAML protocol, the request is blocked and 401 error is returned in the response.
Can anyone guide me to resolve this issue?
any solutions please :(
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
As per HTTP Status 401 description:
The HyperText Transfer Protocol (HTTP)
401 Unauthorizedresponse status code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.
Most probably the request you're executing doesn't provide valid authentication context due to missing or improperly implemented correlation.
SAML login flow assumes multiple mandatory dynamic parameters which need to be extracted from the previous request using suitable JMeter Post-Processors, saved into JMeter Variables and used in the next requests instead of recorded values.
See How to Load Test SAML SSO Secured Websites with JMeter for example test plan.