Package com.applitools.eyes.events
Class SessionEventHandlers
- java.lang.Object
-
- com.applitools.eyes.events.SessionEventHandlers
-
- All Implemented Interfaces:
ISessionEventHandler
public class SessionEventHandlers extends Object implements ISessionEventHandler
-
-
Constructor Summary
Constructors Constructor Description SessionEventHandlers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventHandler(ISessionEventHandler handler)voidclearEventHandlers()voidinitEnded()Called when the model gathering phase had ended.voidinitStarted()Called when the model gathering for creating a session phase had started.voidremoveEventHandler(ISessionEventHandler handler)voidsetSizeEnded()Called 'set size' operation has ended (either failed/success).voidsetSizeWillStart(com.applitools.eyes.RectangleSize sizeToSet)Called when setting the size of the application window is about to start.voidtestEnded(String autSessionId, TestResults testResults)Called after a session had ended.voidtestStarted(String autSessionId)Called after a session had started.voidvalidationEnded(String autSessionId, String validationId, ValidationResult validationResult)Called when a validation had ended.voidvalidationWillStart(String autSessionId, ValidationInfo validationInfo)Called before a new validation will be started.
-
-
-
Method Detail
-
addEventHandler
public void addEventHandler(ISessionEventHandler handler)
-
removeEventHandler
public void removeEventHandler(ISessionEventHandler handler)
-
clearEventHandlers
public void clearEventHandlers()
-
initStarted
public void initStarted()
Description copied from interface:ISessionEventHandlerCalled when the model gathering for creating a session phase had started.- Specified by:
initStartedin interfaceISessionEventHandler
-
initEnded
public void initEnded()
Description copied from interface:ISessionEventHandlerCalled when the model gathering phase had ended.- Specified by:
initEndedin interfaceISessionEventHandler
-
setSizeWillStart
public void setSizeWillStart(com.applitools.eyes.RectangleSize sizeToSet)
Description copied from interface:ISessionEventHandlerCalled when setting the size of the application window is about to start.- Specified by:
setSizeWillStartin interfaceISessionEventHandler- Parameters:
sizeToSet- the size of the window.
-
setSizeEnded
public void setSizeEnded()
Description copied from interface:ISessionEventHandlerCalled 'set size' operation has ended (either failed/success).- Specified by:
setSizeEndedin interfaceISessionEventHandler
-
testStarted
public void testStarted(String autSessionId)
Description copied from interface:ISessionEventHandlerCalled after a session had started.- Specified by:
testStartedin interfaceISessionEventHandler- Parameters:
autSessionId- The AUT session ID.
-
testEnded
public void testEnded(String autSessionId, TestResults testResults)
Description copied from interface:ISessionEventHandlerCalled after a session had ended.- Specified by:
testEndedin interfaceISessionEventHandler- Parameters:
autSessionId- The AUT session ID.testResults- The test results.
-
validationWillStart
public void validationWillStart(String autSessionId, ValidationInfo validationInfo)
Description copied from interface:ISessionEventHandlerCalled before a new validation will be started.- Specified by:
validationWillStartin interfaceISessionEventHandler- Parameters:
autSessionId- The AUT session ID.validationInfo- The validation parameters.
-
validationEnded
public void validationEnded(String autSessionId, String validationId, ValidationResult validationResult)
Description copied from interface:ISessionEventHandlerCalled when a validation had ended.- Specified by:
validationEndedin interfaceISessionEventHandler- Parameters:
autSessionId- The AUT session ID.validationId- The ID of the validation which had ended.validationResult- The validation results.
-
-