|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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)
Constructor Summary | |
---|---|
TestSession(TestSlot slot,
Map<String,Object> requestedCapabilities,
TimeSource timeSource)
Creates a test session on the specified testSlot. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
forward(SeleniumBasedRequest request,
javax.servlet.http.HttpServletResponse response,
boolean newSessionRequest)
forwards the request to the node. |
Object |
get(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. |
String |
getInternalKey()
|
Map<String,Object> |
getRequestedCapabilities()
the capabilities the client requested. |
TestSlot |
getSlot()
|
int |
hashCode()
|
boolean |
isForwardingRequest()
|
boolean |
isOrphaned()
|
void |
put(String key,
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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestSession(TestSlot slot, Map<String,Object> requestedCapabilities, TimeSource timeSource)
Method Detail |
---|
public String getInternalKey()
public Map<String,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 Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public String forward(SeleniumBasedRequest request, javax.servlet.http.HttpServletResponse response, boolean newSessionRequest) throws IOException
IOException
public Object get(String key)
public void put(String key, Object value)
key
- a non-null stringpublic boolean sendDeleteSessionRequest()
public void setIgnoreTimeout(boolean ignore)
public boolean isForwardingRequest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |