Automation lab Aú Image Processing (IMAGE_PROCESSING)

Lab 077: Brightness detection using histogram

Practice brightness detection using histogram 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 brightness detection using histogram.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

Image Processing / media / intermediate / active

Brightness detection using histogram

Analyze image brightness with a simple histogram and classify dark/bright.

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

Learning objectives

  • Load image into canvas.
  • Compute brightness histogram buckets.
  • Classify image as dark/bright.

Steps

  1. Select an image.
  2. Click analyze.
  3. Verify histogram and classification text.

No image loaded

Dark: 0 | Mid: 0 | Bright: 0

Assertions to practice

  • Analyze updates histogram counts.
  • Classification text changes with brightness.
  • Status resets when no image.