Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Security & accessibilitySeniorOccasionalTest design

How would you design a focused test strategy for session management using only a keyboard and screen reader?

Answer

Build the smallest useful model of the behavior by mapping assets, actors, trust boundaries and assistive-technology interactions. Focus on session management using only a keyboard and screen reader. Use explicit authorization rules, secure defaults and WCAG success criteria as the oracle. Cover misuse, privilege changes, data leakage, keyboard flow and perceivable feedback. Keep data and dependencies controlled enough to reproduce failures. Release only when unauthorized actions fail safely and critical tasks remain operable without a mouse or visual cues.

Strong answer includes

  • explicit risk and test oracle for session management
  • tests server-side authorization
  • uses accessibility criteria rather than visual opinion
  • measurable evidence and residual-risk statement

Practical example

The test strategy covered logging in, triggering a session timeout, and confirming a screen reader announces the 'session expired, please log in again' message and that keyboard focus moves to the login field automatically, rather than silently redirecting and leaving focus lost on a blank page. The same flow was repeated for concurrent-session logout to ensure the announcement fires consistently.

#security#accessibility#session-management

Sources

OWASP Web Security Testing GuideOWASP · Web application security test coverageOWASP API Security Top 10 — 2023OWASP · Authorization, authentication, resource consumption and API-specific risksOWASP Application Security Verification StandardOWASP · Testable application-security requirements and assurance levelsWeb Content Accessibility Guidelines 2.2W3C · Accessibility requirements and conformance