public final class SauceLabsRestApi extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_CACHE |
Constructor and Description |
---|
SauceLabsRestApi()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxConcurrency()
Get the maximum number of test case that can run in parallel for the primary account.
|
int |
getNumberOfTCRunning()
Get the total number of test cases running in sauce labs for the primary account.
|
int |
getNumberOfTCRunningForSubAccount(String user)
Get the number of test cases running in sauce labs for the sauce labs sub-account/user
|
boolean |
isAuthenticated(String username,
String apiKey)
Determine if the account credentials specified are valid by calling the sauce rest api.
|
public static final int MAX_CACHE
public SauceLabsRestApi()
public int getNumberOfTCRunning()
-1
on failure calling sauce labs.public int getNumberOfTCRunningForSubAccount(String user)
user
- id of the sub-account-1
on failurepublic int getMaxConcurrency()
-1
on failure calling sauce labspublic boolean isAuthenticated(String username, String apiKey)
MAX_CACHE
username
- the user nameapiKey
- the sauce labs api access keytrue
on success. false
if unauthorized or unable to call sauce.Copyright © 2016 PayPal Open Source. All rights reserved.