This page describes how to create a test case to check whether a video on a website or mobile app has been played or stopped. (For example, we use https://magicpod.com/resources/introduction-movie/)
Table of contents
Check playback
First, set the video to a stopped state.
Then, specify the UI element in the video with the Store image of UI element command and save the image of the stopped state.
Play the video.
After a wait of 5 seconds or so,
Stop the video.
Finally, you can check if the video was played by adding the Assert UI element's image does not match command with the same elements and checking that they are different images.
*All steps
Check pause
First, set the video to playback.
After a wait of 5 seconds or so,
Stop the video.
Then, specify the UI element in the video with the Store image of UI element command and save the image of the stopped state.
After a wait of 5 seconds or so,
Finally, you can check if the video was stopped by adding the Assert UI element's image matches command with the same elements and checking that they are the same images.
*All steps