public static enum BrowserstackCredential.Mode extends Enum<BrowserstackCredential.Mode>
BrowserstackCredential.DEFAULT_RETRIEVAL_MODE
.
If viewing javadocs in a browser, click on the "Enum Constants" (enumeration members) to see details on how to use the mode.
Enum Constant and Description |
---|
API
For testing factory API call only.
|
CONSOLE_PROMPT
Credential is requested at runtime via console.
|
DEFAULT
Use default retrieval mode as hardcoded in BrowserstackCredential.java.
|
EMPTY
For testing prompting only.
|
LOCAL_FILE
Retrieve credential from a local file.
|
SOURCE_CONSTANT
Credential is assigned inline in the code.
|
Modifier and Type | Method and Description |
---|---|
static BrowserstackCredential.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrowserstackCredential.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrowserstackCredential.Mode LOCAL_FILE
.bsc
in the home directory with the following 2 lines:
username = xxxxxxxxxxx
automateKey = xxxxxxxxxxxxxxxxxxxxx
Replace the x's with the credentials supplied by Browserstack's Automate site.
public static final BrowserstackCredential.Mode CONSOLE_PROMPT
public static final BrowserstackCredential.Mode SOURCE_CONSTANT
DO NOT PUSH SOURCE OR COMPILED COMPONENTS TO ANY PUBLIC DATA STORE (GITHUB, S3, Google Drive, Dropbox, etc.) AFTER DEFINING CREDENTIALS INLINE.
Credential assignments are found in the code at:
BrowserstackCredentialSecrets.CONSTANT_AUTOMATE_KEY
and
BrowserstackCredentialSecrets.CONSTANT_USER_NAME
.
public static final BrowserstackCredential.Mode EMPTY
public static final BrowserstackCredential.Mode API
public static final BrowserstackCredential.Mode DEFAULT
public static BrowserstackCredential.Mode[] values()
for (BrowserstackCredential.Mode c : BrowserstackCredential.Mode.values()) System.out.println(c);
public static BrowserstackCredential.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018. All rights reserved.