public class RegistrationRequest extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APP |
static String |
AUTO_REGISTER |
static String |
BROWSER |
static String |
BROWSER_TIME_OUT |
static String |
CLEAN_SNAPSHOT |
static String |
CLEAN_UP_CYCLE |
static String |
DOWN_POLLING_LIMIT |
static String |
HOST |
static String |
HUB_HOST |
static String |
HUB_PORT |
static String |
ID |
static String |
MAX_INSTANCES |
static String |
MAX_SESSION |
static String |
MAX_TESTS_BEFORE_CLEAN |
static String |
NODE_POLLING |
static String |
PATH |
static String |
PLATFORM |
static String |
PORT |
static String |
PROXY_CLASS |
static String |
REGISTER_CYCLE |
static String |
REMOTE_HOST |
static String |
SELENIUM_PROTOCOL |
static String |
SERVLETS |
static String |
STATUS_CHECK_TIMEOUT |
static String |
TIME_OUT |
static String |
UNREGISTER_IF_STILL_DOWN_AFTER |
static String |
VERSION |
Constructor and Description |
---|
RegistrationRequest() |
Modifier and Type | Method and Description |
---|---|
void |
addDesiredCapability(org.openqa.selenium.remote.DesiredCapabilities c) |
void |
addDesiredCapability(Map<String,Object> c) |
static RegistrationRequest |
build(String... args) |
String[] |
getArgs() |
com.google.gson.JsonObject |
getAssociatedJSON() |
List<org.openqa.selenium.remote.DesiredCapabilities> |
getCapabilities() |
int |
getConfigAsInt(String param,
int defaultValue) |
String |
getConfigAsString(String param) |
Map<String,Object> |
getConfiguration() |
String |
getDescription() |
String |
getId() |
String |
getName() |
static RegistrationRequest |
getNewInstance(String json)
Create an object from a registration request formatted as a json string.
|
RemoteControlConfiguration |
getRemoteControlConfiguration() |
String |
getRemoteProxyClass()
if a PROXY_CLASS is specified in the request, the proxy created following this request will be
of that type.
|
GridRole |
getRole() |
void |
loadFromJSON(String resource)
add config, but overwrite capabilities.
|
static RegistrationRequest |
localWebdriverNoCapabilities() |
void |
setCapabilities(List<org.openqa.selenium.remote.DesiredCapabilities> capabilities) |
void |
setConfiguration(Map<String,Object> configuration) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setName(String name) |
void |
setRole(GridRole role) |
String |
toJSON() |
void |
validate()
Validate the current setting and throw a config exception is an invalid setup is detected.
|
public static final String APP
public static final String MAX_INSTANCES
public static final String SELENIUM_PROTOCOL
public static final String PATH
public static final String BROWSER
public static final String PLATFORM
public static final String VERSION
public static final String REGISTER_CYCLE
public static final String PROXY_CLASS
public static final String CLEAN_UP_CYCLE
public static final String TIME_OUT
public static final String BROWSER_TIME_OUT
public static final String REMOTE_HOST
public static final String MAX_SESSION
public static final String AUTO_REGISTER
public static final String NODE_POLLING
public static final String UNREGISTER_IF_STILL_DOWN_AFTER
public static final String DOWN_POLLING_LIMIT
public static final String STATUS_CHECK_TIMEOUT
public static final String MAX_TESTS_BEFORE_CLEAN
public static final String CLEAN_SNAPSHOT
public static final String HOST
public static final String PORT
public static final String HUB_HOST
public static final String HUB_PORT
public static final String SERVLETS
public static final String ID
public String getId()
public void setId(String id)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public List<org.openqa.selenium.remote.DesiredCapabilities> getCapabilities()
public void addDesiredCapability(org.openqa.selenium.remote.DesiredCapabilities c)
public void setCapabilities(List<org.openqa.selenium.remote.DesiredCapabilities> capabilities)
public String toJSON()
public com.google.gson.JsonObject getAssociatedJSON()
public int getConfigAsInt(String param, int defaultValue)
public static RegistrationRequest getNewInstance(String json)
json
- public String getRemoteProxyClass()
public static RegistrationRequest localWebdriverNoCapabilities()
public static RegistrationRequest build(String... args)
public void loadFromJSON(String resource)
resource
- public GridRole getRole()
public void setRole(GridRole role)
public RemoteControlConfiguration getRemoteControlConfiguration()
public String[] getArgs()
public void validate() throws GridConfigurationException
GridConfigurationException
Copyright © 2014. All rights reserved.