Automation lab Aú State & Session Management (STATE_SESSION)
Lab 044: Detect and warn about stale data
Practice detect and warn about stale data in a real web app context as part of the State & Session Management module.
intermediate
intermediate
Objectives
Use for test scripts- Understand the purpose and business flow of detect and warn about stale data.
- Design stable locators for key UI elements.
- Automate user interactions and verify the resulting UI state.
Sandbox
Auth & Session • auth • intermediate • active
Detect and warn about stale data
Monitor last updated time and show stale warning when data is old.
Reading and understanding requirements
Choosing stable locators
Designing assertions based on business rules
Learning objectives
- Track last updated timestamp.
- Trigger stale warning after threshold.
- Refresh to clear stale state.
Steps
- Mark data stale and verify warning.
- Refresh to update timestamp.
- Assert warning disappears after refresh.
Practice sandbox
Mark data fresh or stale.
Last updated: never
State: unknown
Data may be stale. Please refresh.
Assertions to practice
- Warning visible when stale.
- Refresh sets timestamp and hides warning.
- Status text reflects current freshness.