Automation lab Aú Audio & Media (MEDIA_AUDIO)

Lab 082: Mock getUserMedia audio stream

Practice mock getusermedia audio stream in a real web app context as part of the Audio & Media module.

advanced advanced
advanced

Objectives

Use for test scripts
  • Understand the purpose and business flow of mock getusermedia audio stream.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

Audio & Media / media / intermediate / active

Mock getUserMedia audio stream

Simulate starting/stopping an audio stream and surface state.

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

Learning objectives

  • Mock getUserMedia allow/deny.
  • Show stream active state.
  • Expose status and meters for automation.

Steps

  1. Click start stream.
  2. Simulate allow/deny.
  3. Stop stream and confirm status.

Idle

Stream: inactive

Assertions to practice

  • Allow sets stream active, deny sets error state.
  • Stop resets stream to inactive.
  • Status text reflects each transition.