This guide explains how to create a test case to verify if a video on a website or mobile app is playing or paused.
Table of contents
Checking playback
- Ensure the video is in a stopped state before starting the test.
- Use "Store image of UI element" to save an image of the video’s stopped state.
- Click the video player to start playback.
- Wait for 5 seconds to allow the video to play.
- Click the video player again to stop the video.
- Use "Assert UI element’s image does not match" to compare the current video frame with the previously stored image.
- If the images are different, it confirms the video played.
All Steps:
Check pause
- Start the video by clicking the player.
- Wait for 5 seconds to allow playback.
- Click the player to pause the video.
- Use "Store image of UI element" to save the paused frame.
- Wait another 5 seconds and then compare the stored image with the current one.
- Use "Assert UI element’s image matches" to confirm the video remains paused.
- If the images match, the video was successfully paused.
All Steps: