org.openqa.grid.internal.listeners
Interface TimeoutListener

All Known Implementing Classes:
DefaultRemoteProxy, SeleniumRemoteProxy, WebDriverRemoteProxy

public interface TimeoutListener


Method Summary
 void beforeRelease(TestSession session)
          Gives a chance to clean the resources on the remote when the session has timed out.
 

Method Detail

beforeRelease

void beforeRelease(TestSession session)
Gives a chance to clean the resources on the remote when the session has timed out.

Is executed before the session is released to the hub. If an exception is thrown, the slot that was associated with the session is considered corrupted and won't be released for future use.

You can check session.getInternalKey before timing out. internalkey==null usually means the initial POST /session hasn't been completed yet.For instance if you use web driver, that means the browser is in the process of being started. During that state, you can't really clean the resources properly.

Parameters:
session -


Copyright © 2011. All Rights Reserved.