public abstract class BrowserStackClient extends Object implements BrowserStackClientInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
BrowserStackClient.Method |
static class |
BrowserStackClient.Product |
| Modifier and Type | Field and Description |
|---|---|
protected BrowserStackCache<String,Object> |
cacheMap |
| Modifier | Constructor and Description |
|---|---|
protected |
BrowserStackClient() |
|
BrowserStackClient(String baseUrl,
String username,
String accessKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteBuild(String buildId)
Delete the build identified by the build identifier.
|
protected String |
getAccessKey() |
protected BrowserListing |
getBrowsersForProduct(BrowserStackClient.Product product) |
protected BrowserListing |
getBrowsersForProduct(BrowserStackClient.Product product,
boolean cache) |
Build |
getBuild(String buildId)
Gets the build identified by the build identifier.
|
Build |
getBuildByName(String buildName)
Gets the build identified using the build name.
|
List<Build> |
getBuilds()
Gets the list of builds.
|
List<Build> |
getBuilds(Automate.BuildStatus status)
Gets the list of builds.
|
List<Build> |
getBuilds(Automate.BuildStatus status,
int limit)
Gets the list of builds via build status and the count required
|
List<Build> |
getBuilds(Automate.BuildStatus status,
int limit,
String buildName)
Gets the list of builds.
|
List<Build> |
getBuilds(int limit)
Gets the list of builds.
|
Session |
getSession(String sessionId)
Gets the session associated with the specified identifier.
|
List<Session> |
getSessions(String buildId)
Retrieves the list of sessions existing under a specific build.
|
List<Session> |
getSessions(String buildId,
Automate.BuildStatus status)
Retrieves the list of sessions existing under a specific build.
|
List<Session> |
getSessions(String buildId,
Automate.BuildStatus status,
int limit)
Retrieves the list of sessions existing under a specific build.
|
List<Session> |
getSessions(String buildId,
int limit)
Retrieves the list of sessions existing under a specific build.
|
protected BrowserStackRequest |
newRequest(BrowserStackClient.Method method,
String path) |
protected BrowserStackRequest |
newRequest(BrowserStackClient.Method method,
String path,
boolean prependUrl) |
protected BrowserStackRequest |
newRequest(BrowserStackClient.Method method,
String path,
Map<String,Object> data) |
protected BrowserStackRequest |
newRequest(BrowserStackClient.Method method,
String path,
Map<String,Object> data,
Map<String,String> headers) |
protected void |
setAccessKey(String accessKey) |
void |
setProxy(String proxyHost,
int proxyPort,
String proxyUsername,
String proxyPassword)
Sets proxy configuration for requests
|
protected BrowserStackRequest |
signRequest(com.google.api.client.http.HttpRequest request) |
protected final BrowserStackCache<String,Object> cacheMap
public void setProxy(String proxyHost, int proxyPort, String proxyUsername, String proxyPassword)
setProxy in interface BrowserStackClientInterfaceproxyHost - Host of the proxyproxyPort - Port of the proxyproxyUsername - Username of proxyproxyPassword - password of the proxyprotected String getAccessKey()
protected void setAccessKey(String accessKey)
protected BrowserListing getBrowsersForProduct(BrowserStackClient.Product product) throws BrowserStackException
BrowserStackExceptionprotected BrowserListing getBrowsersForProduct(BrowserStackClient.Product product, boolean cache) throws BrowserStackException
BrowserStackExceptionprotected BrowserStackRequest newRequest(BrowserStackClient.Method method, String path) throws BrowserStackException
BrowserStackExceptionprotected BrowserStackRequest newRequest(BrowserStackClient.Method method, String path, boolean prependUrl) throws BrowserStackException
BrowserStackExceptionprotected BrowserStackRequest newRequest(BrowserStackClient.Method method, String path, Map<String,Object> data) throws BrowserStackException
BrowserStackExceptionprotected BrowserStackRequest newRequest(BrowserStackClient.Method method, String path, Map<String,Object> data, Map<String,String> headers) throws BrowserStackException
BrowserStackExceptionprotected BrowserStackRequest signRequest(com.google.api.client.http.HttpRequest request)
public List<Build> getBuilds(Automate.BuildStatus status, int limit, String buildName) throws BrowserStackException
A build is an organizational structure for tests.
getBuilds in interface BrowserStackClientInterfacestatus - Return only builds that match the specified build status.limit - Limit results to the specified count.buildName - build name to be searched with.Build objects.BrowserStackExceptionpublic List<Build> getBuilds(Automate.BuildStatus status, int limit) throws BrowserStackException
A build is an organizational structure for tests.
getBuilds in interface BrowserStackClientInterfacestatus - Return only builds that match the specified build status.limit - Limit results to the specified count.Build objects.BrowserStackExceptionpublic List<Build> getBuilds() throws BrowserStackException
A build is an organizational structure for tests.
getBuilds in interface BrowserStackClientInterfaceBuild objects.BrowserStackExceptionpublic List<Build> getBuilds(int limit) throws BrowserStackException
A build is an organizational structure for tests.
getBuilds in interface BrowserStackClientInterfacelimit - Limit results to the specified count.Build objects.BrowserStackExceptionpublic List<Build> getBuilds(Automate.BuildStatus status) throws BrowserStackException
A build is an organizational structure for tests.
getBuilds in interface BrowserStackClientInterfacestatus - Include only builds that match the specified build status.Build objects.BrowserStackExceptionpublic Build getBuild(String buildId) throws BuildNotFound, BrowserStackException
getBuild in interface BrowserStackClientInterfacebuildId - ID that uniquely identifies a build.Build objects.BuildNotFoundBrowserStackExceptionpublic Build getBuildByName(@Nonnull String buildName) throws BuildNotFound, BrowserStackException
getBuildByName in interface BrowserStackClientInterfacebuildName - Name of the build which will be used for searchingBuild objectBuildNotFoundBrowserStackExceptionpublic boolean deleteBuild(String buildId) throws BrowserStackException
deleteBuild in interface BrowserStackClientInterfacebuildId - ID that uniquely identifies a build.BrowserStackExceptionpublic List<Session> getSessions(String buildId, Automate.BuildStatus status, int limit) throws BuildNotFound, BrowserStackException
getSessions in interface BrowserStackClientInterfacebuildId - ID that uniquely identifies a build.status - Include only builds that match the specified build status.limit - Limit results to the specified count.Session objects containing test session information.BuildNotFoundBrowserStackExceptionpublic List<Session> getSessions(String buildId) throws BuildNotFound, BrowserStackException
getSessions in interface BrowserStackClientInterfacebuildId - ID that uniquely identifies a build.Session objects containing test session information.BuildNotFoundBrowserStackExceptionpublic List<Session> getSessions(String buildId, int limit) throws BuildNotFound, BrowserStackException
getSessions in interface BrowserStackClientInterfacebuildId - ID that uniquely identifies a build.limit - Limit results to the specified count.Session objects containing test session information.BuildNotFoundBrowserStackExceptionpublic List<Session> getSessions(String buildId, Automate.BuildStatus status) throws BuildNotFound, BrowserStackException
getSessions in interface BrowserStackClientInterfacebuildId - ID that uniquely identifies a build.status - Include only builds that match the specified build status.Session objects containing test session information.BuildNotFoundBrowserStackExceptionpublic Session getSession(String sessionId) throws SessionNotFound, BrowserStackException
getSession in interface BrowserStackClientInterfacesessionId - ID that uniquely identifies a session.Session objects containing test session information.SessionNotFound, - BrowserStackExceptionSessionNotFoundBrowserStackExceptionCopyright © 2020. All rights reserved.