Automation lab Aú File Handling (FILE_HANDLING)
Lab 061: Upload image smaller than 5MB
Practice upload image smaller than 5mb in a real web app context as part of the File Handling module.
intermediate
intermediate
Objectives
Use for test scripts- Understand the purpose and business flow of upload image smaller than 5mb.
- Design stable locators for key UI elements.
- Automate user interactions and verify the resulting UI state.
Sandbox
File Handling / file / intermediate / active
Upload image smaller than 5MB
Validate image size to allow uploads under 5MB.
Reading and understanding requirements
Choosing stable locators
Designing assertions based on business rules
Learning objectives
- Check file size against limit.
- Show success when below 5MB.
- Expose clear error when over limit.
Steps
- Select an image.
- Ensure size <= 5MB passes.
- Sizes above 5MB fail.
No file selected
Assertions to practice
- Size <= 5MB shows success.
- Size > 5MB shows error.
- Status shows file name and size.