mercredi 18 juillet 2018

Can I use espresso to detect changes in a device such as device playing/not playing audio?

I have a media player app. My first test case in Espresso was to click on the shuffle tracks button and check if the screen changes to the Player Screen Activity. It worked perfectly.

Now, I would like to click on the Play button and check if audio plays. I have written the test case in such a way that the app opens, clicks the shuffle button, goes to the Player Screen activity, clicks on the Play/Button. The song plays and I can hear it. Is there a way to check if the audio is playing or not in espresso? Forgive me if the question is too dumb or basic as I am a learner.

Aucun commentaire:

Enregistrer un commentaire