Adding interface for Home and Now Playing pages in TestMediaApp
Test: Adding interface methods for TestMediaApp
bug: 156391183
Change-Id: I5259fbb3baa679885674fdc9b40695856f6528e9
diff --git a/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterHelper.java b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterHelper.java
index e69e4ce..92180a6 100644
--- a/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterHelper.java
+++ b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterHelper.java
@@ -18,65 +18,67 @@
public interface IAutoMediaCenterHelper extends IAppHelper {
- /**
- * Setup expectations: Media test app is open.
- *
- * This method is used to set account type.
- */
- void setAccountType(String accountType);
+ /** enum for screen state */
+ enum ScreenState {
+ HOME,
+ NOW_PLAYING,
+ }
- /**
- * Setup expectations: Media test app is open.
- *
- * This method is used to set root node type.
- */
- void setRootNodeType(String rootNodeType);
+ /** enum for account type state */
+ enum AccountTypeState {
+ NONE,
+ FREE,
+ PAID,
+ }
- /**
- * Setup expectations: Media test app is open.
- *
- * This method is used to set root reply delay.
- */
- void setRootReplyDelay(String rootReplyDelay);
+ /**
+ * Setup expectations: Media test app is open.
+ *
+ * <p>This method is used to set account type.
+ */
+ void setAccountType(String accountType);
- /**
- * Setup expectations: media test app is open.
- *
- * This method is used to open Folder Menu with menuOptions.
- * Example - openMenu->Folder->Mediafilename->trackName
- * openMenuWith(Folder,mediafilename,trackName);
- *
- * @param - menuOptions used to pass multiple level of menu options in one go.
- */
- void selectMediaTrack(String... menuOptions);
+ /**
+ * Setup expectations: Media test app is open.
+ *
+ * <p>This method is used to set root node type.
+ */
+ void setRootNodeType(String rootNodeType);
- /**
- * Setup expectations: media test app is open.
- *
- * This method is used to open settings.
- */
- void openSettings();
+ /**
+ * Setup expectations: Media test app is open.
+ *
+ * <p>This method is used to set root reply delay.
+ */
+ void setRootReplyDelay(String rootReplyDelay);
- /**
- * Setup expectations: media test app is open.
- *
- * This method is used to close settings.
- */
- void closeSettings();
+ /**
+ * Setup expectations: media test app is open.
+ *
+ * <p>This method is used to open settings.
+ */
+ void openSettings();
- /**
- * Setup expectations: media test app is open.
- *
- * @param - tabName used to select tab name.
- */
- void selectTab(String tabName);
+ /**
+ * Setup expectations: media test app is open.
+ *
+ * <p>This method is used to close settings.
+ */
+ void closeSettings();
- /**
- * Setup expectations: media test app is open.
- *
- * @param - title used search media track,artist.
- */
- void search(String title);
+ /**
+ * Setup expectations: media test app is open.
+ *
+ * @param - tabName used to select tab name.
+ */
+ void selectTab(String tabName);
+
+ /**
+ * Setup expectations: media test app is open.
+ *
+ * @param - title used search media track,artist.
+ */
+ void search(String title);
/**
* This method is used to check if media is currently playing Returns true if media is playing
@@ -97,4 +99,15 @@
* clicks to go back to previous screen
*/
void clickBackButton();
+
+ /**
+ * Setup expectations: media test app is open.
+ *
+ * <p>This method is used to open Folder Menu with menuOptions and scroll into view the track.
+ * Example - openMenu->Folder->Mediafilename->trackName
+ * openMenuWith(Folder,mediafilename,trackName);
+ *
+ * @param - menuOptions used to pass multiple level of menu options in one go.
+ */
+ void selectMediaTrack(String... menuOptions);
}
diff --git a/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterMinimizeControlBarHelper.java b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterMinimizeControlBarHelper.java
index f90c0ae..f8fca51 100644
--- a/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterMinimizeControlBarHelper.java
+++ b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterMinimizeControlBarHelper.java
@@ -18,45 +18,45 @@
public interface IAutoMediaCenterMinimizeControlBarHelper extends IAppHelper {
- /**
- * Setup expectations: media test app is open and Minimize control bar present.
- *
- * This method is used to play media.
- */
- void playMedia();
+ /**
+ * Setup expectations: media test app is open and Minimize control bar present.
+ *
+ * <p>This method is used to play media.
+ */
+ void playMedia();
- /**
- * Setup expectations: media test app is open and Minimize control bar present.
- *
- * This method is used to pause media.
- */
- void pauseMedia();
+ /**
+ * Setup expectations: media test app is open and Minimize control bar present.
+ *
+ * <p>This method is used to pause media.
+ */
+ void pauseMedia();
- /**
- * Setup expectations: media test app is open and Minimize control bar present.
- *
- * This method is used to select next track.
- */
- void clickNextTrack();
+ /**
+ * Setup expectations: media test app is open and Minimize control bar present.
+ *
+ * <p>This method is used to select next track.
+ */
+ void clickNextTrack();
- /**
- * Setup expectations: media test app is open and Minimize control bar present.
- *
- * This method is used to select previous track.
- */
- void clickPreviousTrack();
+ /**
+ * Setup expectations: media test app is open and Minimize control bar present.
+ *
+ * <p>This method is used to select previous track.
+ */
+ void clickPreviousTrack();
- /**
- * Setup expectations: media test app is open and Minimize control bar present.
- *
- * @return to get current playing track name from home screen.
- */
- String getTrackName();
+ /**
+ * Setup expectations: media test app is open and Minimize control bar present.
+ *
+ * @return to get current playing track name from home screen.
+ */
+ String getTrackName();
- /**
- * Setup expectations: media test app is open and Minimize control bar present.
- *
- * This method is used to maximize the play back screen.
- */
- void maximizeNowPlaying();
+ /**
+ * Setup expectations: media test app is open and Minimize control bar present.
+ *
+ * <p>This method is used to maximize the play back screen.
+ */
+ void maximizeNowPlaying();
}
diff --git a/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterNowPlayingHelper.java b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterNowPlayingHelper.java
index a73e19b..9ebd215 100644
--- a/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterNowPlayingHelper.java
+++ b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMediaCenterNowPlayingHelper.java
@@ -18,52 +18,52 @@
public interface IAutoMediaCenterNowPlayingHelper extends IAppHelper {
- /**
- * Setup expectations: Now Playing is open.
- *
- * This method is used to play media.
- */
- void playMedia();
+ /**
+ * Setup expectations: Now Playing is open.
+ *
+ * <p>This method is used to play media.
+ */
+ void playMedia();
- /**
- * Setup expectations: Now Playing is open.
- *
- * This method is used to pause media.
- */
- void pauseMedia();
+ /**
+ * Setup expectations: Now Playing is open.
+ *
+ * <p>This method is used to pause media.
+ */
+ void pauseMedia();
- /**
- * Setup expectations: Now Playing is open.
- *
- * This method is used to select next track.
- */
- void clickNextTrack();
+ /**
+ * Setup expectations: Now Playing is open.
+ *
+ * <p>This method is used to select next track.
+ */
+ void clickNextTrack();
- /**
- * Setup expectations: Now Playing is open.
- *
- * This method is used to select previous track.
- */
- void clickPreviousTrack();
+ /**
+ * Setup expectations: Now Playing is open.
+ *
+ * <p>This method is used to select previous track.
+ */
+ void clickPreviousTrack();
- /**
- * Setup expectations: Now Playing is open.
- *
- * @return to get current playing track name from screen.
- */
- String getTrackName();
+ /**
+ * Setup expectations: Now Playing is open.
+ *
+ * @return to get current playing track name from home screen.
+ */
+ String getTrackName();
- /**
- * Setup expectations: Now Playing is open.
- *
- * @return to get current playing track's artist name from screen.
- */
- String getArtistName();
+ /**
+ * Setup expectations: Now Playing is open.
+ *
+ * @return to get current playing track's artist name from screen.
+ */
+ String getArtistName();
- /**
- * Setup expectations: Now Playing is open.
- *
- * This method is used to minimize now playing.
- */
- void minimizeNowPlaying();
-}
\ No newline at end of file
+ /**
+ * Setup expectations: Now Playing is open.
+ *
+ * <p>This method is used to minimize now playing.
+ */
+ void minimizeNowPlaying();
+}