Package | Description |
---|---|
org.openqa.grid.internal | |
org.openqa.grid.internal.listeners | |
org.openqa.grid.selenium.proxy | |
org.openqa.grid.web.servlet.handler |
Modifier and Type | Method and Description |
---|---|
TestSession |
Registry.getExistingSession(ExternalSessionKey externalKey)
gets the test existing session associated to this external key.
|
TestSession |
ProxySet.getNewSession(Map<String,Object> desiredCapabilities) |
TestSession |
TestSlot.getNewSession(Map<String,Object> desiredCapabilities)
Try to get a new session for the test slot for the desired capability.
|
TestSession |
BaseRemoteProxy.getNewSession(Map<String,Object> requestedCapability) |
TestSession |
RemoteProxy.getNewSession(Map<String,Object> requestedCapability)
Creates and returns a new test session if the current node has the resources and is ready to run the test.
|
TestSession |
TestSlot.getSession()
get the test session currently executed on this test slot.
|
TestSession |
Registry.getSession(ExternalSessionKey externalKey)
gets the test session associated to this external key.
|
Modifier and Type | Method and Description |
---|---|
Set<TestSession> |
Registry.getActiveSessions() |
Modifier and Type | Method and Description |
---|---|
void |
Registry.terminate(TestSession session,
SessionTerminationReason reason)
Ends this test session for the hub, releasing the resources in the hub / registry.
|
Modifier and Type | Method and Description |
---|---|
void |
CommandListener.afterCommand(TestSession session,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Executed just before the forwards returns.
|
void |
TestSessionListener.afterSession(TestSession session)
Will be run after the last command is forwarded, but before the proxy slot is released.
|
void |
CommandListener.beforeCommand(TestSession session,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Executed before the hub forwards the request.
|
void |
TimeoutListener.beforeRelease(TestSession session)
Gives a chance to clean the resources on the remote when the session has timed out.
|
void |
TestSessionListener.beforeSession(TestSession session)
Will be run after the proxy slot is reserved for the test, but before the first command is
forwarded to the remote.
|
Modifier and Type | Method and Description |
---|---|
TestSession |
DefaultRemoteProxy.getNewSession(Map<String,Object> requestedCapability)
overwrites the session allocation to discard the proxy that are down.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultRemoteProxy.afterCommand(TestSession session,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
DefaultRemoteProxy.afterSession(TestSession session) |
void |
DefaultRemoteProxy.beforeCommand(TestSession session,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
DefaultRemoteProxy.beforeRelease(TestSession session) |
void |
DefaultRemoteProxy.beforeSession(TestSession session)
The client shouldn't have to care where firefox is installed as long as the correct version is
launched, however with webdriver the binary location is specified in the desiredCapability,
making it the responsibility of the person running the test.
|
Modifier and Type | Method and Description |
---|---|
TestSession |
RequestHandler.getSession() |
Modifier and Type | Method and Description |
---|---|
void |
RequestHandler.bindSession(TestSession session) |
void |
RequestHandler.forwardNewSessionRequestAndUpdateRegistry(TestSession session)
Forward the new session request to the TestSession that has been assigned, and parse the
response to extract and return the external key assigned by the remote.
|
protected void |
RequestHandler.forwardRequest(TestSession session,
RequestHandler handler) |
String |
LegacySeleniumRequest.getNewSessionRequestedCapability(TestSession session) |
abstract String |
SeleniumBasedRequest.getNewSessionRequestedCapability(TestSession session) |
String |
WebDriverRequest.getNewSessionRequestedCapability(TestSession session) |
protected void |
RequestHandler.setSession(TestSession session) |
Copyright © 2013. All rights reserved.