|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openqa.grid.internal.TestSession
public class TestSession
Represent a running test for the hub/registry. A test session is created when a TestSlot becomes available for a test.
The session is destroyed when the test ends ( ended by the client or timed out)
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
void |
forward(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Forward the request to the remote, execute the TestSessionListeners if applicable. |
java.lang.String |
forward(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String content,
boolean interceptResponseBody)
Forward the request to the remote. |
java.lang.Object |
get(java.lang.String key)
Allow you to retrieve an object previously stored on the test session. |
ExternalSessionKey |
getExternalKey()
Get the session key from the remote. |
long |
getInactivityTime()
give the time in milliseconds since the last access to this test session, or 0 is ignore time out has been set to true. |
java.lang.String |
getInternalKey()
|
java.util.Map<java.lang.String,java.lang.Object> |
getRequestedCapabilities()
the capabilities the client requested. |
TestSlot |
getSlot()
|
int |
hashCode()
|
boolean |
isOrphaned()
|
void |
put(java.lang.String key,
java.lang.Object value)
Allows you to store an object on the test session. |
boolean |
sendDeleteSessionRequest()
Sends a DELETE/testComplete (webdriver/selenium) session command to the remote, following web driver protocol. |
void |
setExternalKey(ExternalSessionKey externalKey)
associate this session to the session provided by the remote. |
void |
setIgnoreTimeout(boolean ignore)
allow to bypass time out for this session. ignore = true => the session will not time out. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getInternalKey()
public java.util.Map<java.lang.String,java.lang.Object> getRequestedCapabilities()
public ExternalSessionKey getExternalKey()
public void setExternalKey(ExternalSessionKey externalKey)
public long getInactivityTime()
setIgnoreTimeout(boolean)
public boolean isOrphaned()
public TestSlot getSlot()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void forward(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
public java.lang.String forward(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String content, boolean interceptResponseBody) throws java.io.IOException
content
- Overwrite the body. Useful when the body of the request was
already read.interceptResponseBody
- for selenium1 protocol, you need to read the content of the
response to find the session.
java.io.IOException
public java.lang.Object get(java.lang.String key)
public void put(java.lang.String key, java.lang.Object value)
key
- a non-null stringpublic boolean sendDeleteSessionRequest()
public void setIgnoreTimeout(boolean ignore)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |