0

I have recorded a simple script for login-logout into an application using a browser. I checked the recorded script and everything looks good, it recorded login in, homepage and logout.

However, when I reply it back, I have got a response message for the login request says:"500This page has been expired Possible reasons, 1. Opened too many browser windows (or closed using the X button instead of button). 2. Session with Cassiopae has expired. Suggestion: Please close all Cassiopae windows and re-login. Currently the following screens are open None."

I checked the cookies and ids and been handled correctly using JMeter HTTP Cookie Manager. What possible other reasons could be leading to this failure.

Thanks for any help

1 Answers1

0

In the absolute majority of cases you cannot just record and replay the test using JMeter's HTTP(S) Test Script Recorder modern web applications widely using dynamic parameters for i.e. client-side state tracking or security reasons

My expectation is that you're passing a recorded hard-coded value when your application under test expects it to be dynamic.

  1. Make sure to add HTTP Cookie Manager to your test plan, if your application maintains user sessions based on cookies - it should be enough to handle it.
  2. Although point 1 is a must, it might be not enough in case if dynamic parameter doesn't belong to cookies. In this case you will have to perform manual correlation to wit:

    • identify dynamic request parameters
    • extract them from the previous response using a suitable JMeter PostProcessor and store them into JMeter Variables
    • replace recorded hard-coded values with the variables from the previous step.
Dmitri T
  • 596