Automation lab Aú Image Processing (IMAGE_PROCESSING)

Lab 073: Image compression and file size check

Practice image compression and file size check in a real web app context as part of the Image Processing module.

advanced advanced
advanced

Objectives

Use for test scripts
  • Understand the purpose and business flow of image compression and file size check.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

Image Processing / media / intermediate / active

Image compression and file size check

Compress an image, compare before/after sizes, and show results.

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

Learning objectives

  • Load image and measure size.
  • Simulate compression to a smaller size.
  • Expose before/after sizes in UI.

Steps

  1. Select an image.
  2. Click compress to simulate reduced size.
  3. Verify status and size comparison.

Original

Original size: n/a

Compressed

Compressed size: n/a

No image loaded

Assertions to practice

  • Before size captured after load.
  • Compress updates compressed size.
  • Status reflects success.