-1

There will be two actions once we click on log in button

  1. login page action
  2. dashboard action

Part of JMeter

  1. login page action got success.in the continuation

  2. dash board action got failed saying

    "text":"Your session expired.","explanation":"Your session expired because of inactivity."

Can anyone help me please..

Community
  • 1
  • 1
Rakesh
  • 17
  • 8

1 Answers1

1

Your SUT is likely to have some form of verification mechanism which checks user session by verifying parameter(s).

Well-behaved test should do exactly what real browser does, to wit:

  1. Open login page
  2. Perform login
  3. Open dashboard

and your job is to ensure that requests which are being triggered by JMeter are 100% match to the requests which are being sent by the real browser.

Try adding HTTP Cookie Manager to your Test Plan, if your SUT checks the cookie - that should be enough. If not - most probably you will need to perform correlation - the process of extracting dynamic parameters from previous response using JMeter Post-Processors, saving them into JMeter Variables and replacing hard-coded (recorded) values with these variables.

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