Automation lab Aú Error Handling & Resilience (ERROR_RESILIENCE)
Lab 054: Error code mapping to user-friendly messages
Practice error code mapping to user-friendly messages in a real web app context as part of the Error Handling & Resilience module.
advanced
advanced
Objectives
Use for test scripts- Understand the purpose and business flow of error code mapping to user-friendly messages.
- Design stable locators for key UI elements.
- Automate user interactions and verify the resulting UI state.
Sandbox
Error Handling & Resilience / error-handling / advanced / active
Error code mapping to user-friendly messages
Map raw error codes to readable messages for users.
Reading and understanding requirements
Choosing stable locators
Designing assertions based on business rules
Learning objectives
- Translate error codes to friendly text.
- Show default fallback for unknown codes.
- Assert ARIA-friendly status updates.
Steps
- Select different error codes.
- Verify mapped message updates.
- Use unknown code to trigger fallback.
Pick a code to see message
Assertions to practice
- 401 → "Please log in again".
- 403 → "You do not have access".
- 404 → "Resource not found".
- 500 → "Our service is having issues".
- Unknown → fallback message.