Forum Xamarin Test Cloud (Read Only)
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Testing audio and video playback

Hi everybody

I have a question regarding the Test Cloud and in particular regarding the Xamarin.UITest framework. Is it possible to test if a audio or video playback is started when a certain button is tapped? For the video playback I can assume that it may be possible to check whether the movie player control is visible or not. Regarding the audio playback I don't see a way to test this.

Has anybody implemented similiar tests or knows if it is even possible to implement?

Answers

  • Martijn00Martijn00 NLInsider, University ✭✭✭

    I have implemented this. The way it is done is that i have a ViewModel with a property IsPlaying which is binded to the native mediaplayer. I check on that in the test to see if audio is playing.

Sign In or Register to comment.