BrightcoveOS/android-player-samples — pull request #61 by brwhyan (2014-07-07 22:09:55+00:00)
Title: New OnceUX UiTest Class PlayStartMessTestCase.java

##Rationale
**PlayStartMessTestCase.java** was created in response to a buggy scenario that is the result of when the play button is pressed the instant the seek controls automatically appear. The scenario consisted of the following: play not being launched despite the play button being pressed, the fast forward, rewind, and seek bar being revealed during the ad break, and a still of the first frame of the video appearing instead of the typical black space that normally occurred before play had begun. The class currently tests for the *Fast Forward* and *Rewind* buttons, the *Seek Bar*, and a *Companion Ad*.

##Changed Files
New File **PlayStartMessTestCase.java**
* New utility method **playVideoSpecialized**, which was a previous version of the super.playVideo method that caused the scenario in question.
* In this test class, it is used instead of super.playVideo() to intentionally cause the scenario in question.
* New test methods **testPlayStartMessFFWDCheck**, **testPlayStartMessREWCheck**, **testPlayStartMessSeekBarCheck**, and **testPlayStartMessCompanionAd** that check for the presence of the fast forward button, the rewind button, the seek bar, and a companion ad respectively. If any are present, the test fails.