@@ -26,6 +26,11 @@ public class AppAutomateClient extends BrowserStackClient implements AppAutomate
2626
2727 private static final String BASE_URL = "https://api-cloud.browserstack.com/app-automate" ;
2828
29+ /**
30+ *
31+ * @param username Browserstack username
32+ * @param accessKey Browserstack accessKey
33+ */
2934 public AppAutomateClient (String username , String accessKey ) {
3035 super (System .getProperty ("browserstack.app-automate.api" , BASE_URL ), username , accessKey );
3136 }
@@ -35,8 +40,8 @@ public AppAutomateClient(String username, String accessKey) {
3540 *
3641 * @param sessionId ID that uniquely identifies a session.
3742 * @return {@link Session} objects containing test session information.
38- * @throws SessionNotFound
39- * @throws AppAutomateException
43+ * @throws SessionNotFound session not found error
44+ * @throws AppAutomateException exception for AppAutomate sessions.
4045 */
4146 @ Override
4247 public Session getSession (String sessionId ) throws SessionNotFound , AppAutomateException {
@@ -52,9 +57,9 @@ public Session getSession(String sessionId) throws SessionNotFound, AppAutomateE
5257 *
5358 * @param filePath absolute path of app to be uploaded.
5459 * @return AppUploadResponse object containing app upload response details.
55- * @throws AppAutomateException
56- * @throws FileNotFoundException
57- * @throws InvalidFileExtensionException
60+ * @throws AppAutomateException exception for AppAutomate sessions.
61+ * @throws FileNotFoundException file not found at given path
62+ * @throws InvalidFileExtensionException unsupported file extension for app
5863 */
5964 @ Override
6065 public AppUploadResponse uploadApp (String filePath )
@@ -104,7 +109,7 @@ public AppUploadResponse uploadApp(String filePath)
104109 * @param status Return only builds that match the specified build status.
105110 * @param limit Limit results to the specified count.
106111 * @return List of {@link Build} objects.
107- * @throws AppAutomateException
112+ * @throws AppAutomateException exception for AppAutomate sessions.
108113 */
109114 @ Override
110115 public List <Build > getBuilds (final BuildStatus status , final int limit )
@@ -124,7 +129,7 @@ public List<Build> getBuilds(final BuildStatus status, final int limit)
124129 * </p>
125130 *
126131 * @return List of {@link Build} objects.
127- * @throws AppAutomateException
132+ * @throws AppAutomateException exception for AppAutomate sessions.
128133 */
129134 @ Override
130135 public List <Build > getBuilds () throws AppAutomateException {
@@ -140,7 +145,7 @@ public List<Build> getBuilds() throws AppAutomateException {
140145 *
141146 * @param limit Limit results to the specified count.
142147 * @return List of {@link Build} objects.
143- * @throws AppAutomateException
148+ * @throws AppAutomateException exception for AppAutomate sessions.
144149 */
145150 @ Override
146151 public List <Build > getBuilds (final int limit ) throws AppAutomateException {
@@ -156,7 +161,7 @@ public List<Build> getBuilds(final int limit) throws AppAutomateException {
156161 *
157162 * @param status Include only builds that match the specified build status.
158163 * @return List of {@link Build} objects.
159- * @throws AppAutomateException
164+ * @throws AppAutomateException exception for AppAutomate sessions.
160165 */
161166 @ Override
162167 public List <Build > getBuilds (final BuildStatus status ) throws AppAutomateException {
@@ -168,8 +173,8 @@ public List<Build> getBuilds(final BuildStatus status) throws AppAutomateExcepti
168173 *
169174 * @param buildId ID that uniquely identifies a build.
170175 * @return List of {@link Build} objects.
171- * @throws BuildNotFound
172- * @throws AppAutomateException
176+ * @throws BuildNotFound could not find build with given id
177+ * @throws AppAutomateException exception for AppAutomate sessions.
173178 */
174179 @ Override
175180 public Build getBuild (final String buildId ) throws BuildNotFound , AppAutomateException {
@@ -185,8 +190,8 @@ public Build getBuild(final String buildId) throws BuildNotFound, AppAutomateExc
185190 *
186191 * @param buildName - Name of the build to search with
187192 * @return {@link Build} object.
188- * @throws BuildNotFound
189- * @throws AppAutomateException
193+ * @throws BuildNotFound could not find build with given id
194+ * @throws AppAutomateException exception for AppAutomate sessions.
190195 */
191196 @ Override
192197 public final Build getBuildByName (@ Nonnull final String buildName ) throws BuildNotFound , AppAutomateException {
@@ -202,7 +207,7 @@ public final Build getBuildByName(@Nonnull final String buildName) throws BuildN
202207 *
203208 * @param buildId ID that uniquely identifies a build.
204209 * @return true or false based on successful deletion of the build.
205- * @throws AppAutomateException
210+ * @throws AppAutomateException exception for AppAutomate sessions.
206211 */
207212 @ Override
208213 public boolean deleteBuild (final String buildId ) throws AppAutomateException {
@@ -220,8 +225,8 @@ public boolean deleteBuild(final String buildId) throws AppAutomateException {
220225 * @param status Include only builds that match the specified build status.
221226 * @param limit Limit results to the specified count.
222227 * @return List of {@link Session} objects containing test session information.
223- * @throws BuildNotFound
224- * @throws AppAutomateException
228+ * @throws BuildNotFound could not find build with given id
229+ * @throws AppAutomateException exception for AppAutomate sessions.
225230 */
226231 @ Override
227232 public List <Session > getSessions (final String buildId , final BuildStatus status , final int limit )
@@ -238,8 +243,8 @@ public List<Session> getSessions(final String buildId, final BuildStatus status,
238243 *
239244 * @param buildId ID that uniquely identifies a build.
240245 * @return List of {@link Session} objects containing test session information.
241- * @throws BuildNotFound
242- * @throws AppAutomateException
246+ * @throws BuildNotFound could not find build with given id
247+ * @throws AppAutomateException exception for AppAutomate sessions.
243248 */
244249 @ Override
245250 public List <Session > getSessions (final String buildId )
@@ -253,8 +258,8 @@ public List<Session> getSessions(final String buildId)
253258 * @param buildId ID that uniquely identifies a build.
254259 * @param limit Limit results to the specified count.
255260 * @return List of {@link Session} objects containing test session information.
256- * @throws BuildNotFound
257- * @throws AppAutomateException
261+ * @throws BuildNotFound could not find build with given id
262+ * @throws AppAutomateException exception for AppAutomate sessions.
258263 */
259264 @ Override
260265 public List <Session > getSessions (final String buildId , final int limit )
@@ -268,8 +273,8 @@ public List<Session> getSessions(final String buildId, final int limit)
268273 * @param buildId ID that uniquely identifies a build.
269274 * @param status Include only builds that match the specified build status.
270275 * @return List of {@link Session} objects containing test session information.
271- * @throws BuildNotFound
272- * @throws AppAutomateException
276+ * @throws BuildNotFound could not find build with given id
277+ * @throws AppAutomateException exception for AppAutomate sessions.
273278 */
274279 @ Override
275280 public List <Session > getSessions (final String buildId , final BuildStatus status )
0 commit comments