0

I am trying to do a performance test for an application in which when the user hits the login URL with Credentials, it redirects to another URL and proceeds so on.

I checked the Csrf token supplied to the Url and it is correct. I also checked the user credentials supplied in header data and it is also correct. I even checked for session id and it is static till the redirection happens. I unable to extract a token for active session since the redirection happens with error. can someone help with what is wrong in this scenarios.

Tried with Follow redirects option and getting the below error.. when tried with automatically redirect no error found but invalid session response was shown.

Request: enter image description here

Response: enter image description here

Prad
  • 1

1 Answers1

0

As per 307 Temporary Redirect status description:

HTTP 307 Temporary Redirect redirect status response code indicates that the resource requested has been temporarily moved to the URL given by the Location headers.

JMeter should follow the redirect and make the request to the target URL, if it doesn't - play with Redirect automatically and Follow redirects boxes:

enter image description here

In any case you should be able to extract the target URL from the Location header using i.e. Regular Expression Extractor and put the resulting URL into "Path" section of the next HTTP Request sampler

Also JMeter should treat HTTP Status 307 as success (as well as any other HTTP status code below 400) so maybe you have an Assertion somewhere which artificially fails the Sampler based on the status code (i.e. checking if it's equal to 200)

Dmitri T
  • 159,985
  • 5
  • 83
  • 133