Page 1 of 1

How to verify that a video inside a control is playing back

Posted: Mon Jul 09, 2018 5:01 pm
by crawf202
I am working with a desktop application, and Ranorex Studio 8.1.1. Our application displays a number of moving video clips playing back in a continuous loop.

I am able to identify these controls for the clips without a problem.

Our manual test cases ask the user to simply confirm that the clips are playing back - that is they aren't paused, or blank.

For automation of this test case, we agreed it would be sufficient to take two quick screenshots of the clip playback control and verify they are not identical- thus proving that something dynamically changing is being displayed in the control. If the comparison comes back as a match, it must mean the clip is either paused or blank.

I don't see a way to do this from within the Ranorex studio however. I can see how to use image based verification of a control, where we compare a new snapshot against one previously saved with the repository - but that's not what we're trying to do here. We want to take two new snapshots while the script is running and compare those against each other. Is there some way to do this?

Re: How to verify that a video inside a control is playing back

Posted: Tue Jul 10, 2018 8:31 am
by Stub
Sounds like you could code up a module where you take an image of an element using the Ranorex.Imaging.CaptureCompressedImage or similar API, wait a bit, take another image, then compare the two images via the Ranorex.Imaging.Compare API? I often load a previously saved image for comparison with some element.

Re: How to verify that a video inside a control is playing back

Posted: Tue Jul 10, 2018 8:54 am
by odklizec