0

Update test Plan I need to check the session expiry functionality implemented for AUT which is REST API. My query is how to remain inactive for specified duration so that session expires and also how to retrieve the response in Jmeter.

My Test Plan:

1

NareshS
  • 1
  • 1

1 Answers1

0

Add Think Times to Controller node:

enter image description here

Remove the one after Login Transaction-Local

Set in Think time a pause higher to the timeout:

enter image description here

Add after it a HTTP Request that should redirect to Login page if session has expired: enter image description here

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
  • tried with Think Time... still all tests are passing and there is no session expiry though jmeter – NareshS Sep 14 '17 at 09:14
  • What think time did you put ? Are you sure it is higher than session timeout ? Did you check in View Results Tree that the response is not the login screen or something else ? Check through assertions – UBIK LOAD PACK Sep 14 '17 at 19:43
  • yes. i had put think time greater than the defined session timeout value, also verified the response for the next request... it got passed as response was from login page without any error. – NareshS Sep 15 '17 at 06:06
  • yes manually its working fine as expected.... but finding it difficult to automate – NareshS Sep 15 '17 at 06:42
  • Updated test plan added pls check – NareshS Sep 15 '17 at 12:18
  • You didn't apply the changes I described in my answer. Where is Test Action with the pause ? Where is the query that tests if users has been disconnected ? – UBIK LOAD PACK Sep 15 '17 at 12:53