Automation lab Aú State & Session Management (STATE_SESSION)

Lab 041: Session timeout and auto logout

Practice session timeout and auto logout in a real web app context as part of the State & Session Management module.

intermediate intermediate
intermediate

Objectives

Use for test scripts
  • Understand the purpose and business flow of session timeout and auto logout.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

Auth & Session • auth • intermediate • active

Session timeout and auto logout

Countdown session timer, auto-logout, and manual activity to extend.

Reading and understanding requirements Choosing stable locators Designing assertions based on business rules

Learning objectives

  • Show session countdown.
  • Auto logout when timer hits zero.
  • Simulate activity to reset timer.

Steps

  1. Observe timer ticking down.
  2. Wait for auto logout and verify state.
  3. Trigger activity to reset timer.

Practice sandbox

Session timeout in 15 seconds.

Time remaining: 15 seconds

Session active

Assertions to practice

  • Timer counts down each second.
  • Auto logout when timer hits 0.
  • Activity/reset extends session.