Package com.applitools.eyes
Class EyesRunner
- java.lang.Object
-
- com.applitools.eyes.EyesRunner
-
- All Implemented Interfaces:
AutoCloseable
public abstract class EyesRunner extends Object implements AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringBASE_AGENT_IDname of the client sdkprotected CommandExecutorcommandExecutorcommand executorprotected static String[]COMMANDSlist of commands sent to the server.protected static AbstractSDKListenerlistenerthe universal server listener.protected com.applitools.eyes.Loggerloggerprotected ReferencemanagerRefthis reference has to be used in order to perform manager related actions (EyesManager.openEyes, EyesManager.closeAllEyes)protected static StringPROTOCOLthe protocol to be usedprotected static StringVERSIONversion of the client sdk
-
Constructor Summary
Constructors Constructor Description EyesRunner()used for instantiating Classic RunnerEyesRunner(String baseAgentId, String version)used for instantiating Classic RunnerEyesRunner(String baseAgentId, String version, AbstractSDKListener listener)EyesRunner(String baseAgentId, String version, RunnerOptions runnerOptions)used for instantiating VisualGrid RunnerEyesRunner(String baseAgentId, String version, RunnerOptions runnerOptions, AbstractSDKListener listener)used for instantiating VisualGrid RunnerEyesRunner(String baseAgentId, String version, String protocol, String[] commands, AbstractSDKListener listener)used for instantiating Classic RunnerEyesRunner(String baseAgentId, String version, String protocol, String[] commands, AbstractSDKListener listener, RunnerOptions runnerOptions)used for instantiating VisualGrid Runner
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetAgentId()TestResultsSummarygetAllTestResults()TestResultsSummarygetAllTestResults(boolean shouldThrowException)CommandExecutorgetCommandExecutor()command executorcom.applitools.eyes.LoggergetLogger()ReferencegetManagerRef()manager referencecom.applitools.eyes.AbstractProxySettingsgetProxy()protected RefergetRefer()BooleangetRemoveDuplicateTests()protected StaleElementReferenceExceptiongetStaleElementException()BooleanisDontCloseBatches()voidlogSessionResultsAndThrowException(boolean throwEx, TestResults results)protected voidrunServer(String baseAgentId, String version)protected voidrunServer(String baseAgentId, String version, String protocol, String[] commands, AbstractSDKListener listener)voidsetCommandExecutor(CommandExecutor commandExecutor)voidsetDontCloseBatches(boolean dontCloseBatches)voidsetLogHandler(com.applitools.eyes.LogHandler logHandler)voidsetManagerRef(Reference managerRef)voidsetProxy(com.applitools.eyes.AbstractProxySettings proxySettings)voidsetRemoveDuplicateTests(Boolean removeDuplicateTests)
-
-
-
Field Detail
-
commandExecutor
protected CommandExecutor commandExecutor
command executor
-
managerRef
protected Reference managerRef
this reference has to be used in order to perform manager related actions (EyesManager.openEyes, EyesManager.closeAllEyes)
-
BASE_AGENT_ID
protected static String BASE_AGENT_ID
name of the client sdk
-
VERSION
protected static String VERSION
version of the client sdk
-
PROTOCOL
protected static String PROTOCOL
the protocol to be used
-
COMMANDS
protected static String[] COMMANDS
list of commands sent to the server.
-
listener
protected static AbstractSDKListener listener
the universal server listener.
-
logger
protected com.applitools.eyes.Logger logger
-
-
Constructor Detail
-
EyesRunner
public EyesRunner()
used for instantiating Classic Runner
-
EyesRunner
public EyesRunner(String baseAgentId, String version)
used for instantiating Classic Runner
-
EyesRunner
public EyesRunner(String baseAgentId, String version, AbstractSDKListener listener)
-
EyesRunner
public EyesRunner(String baseAgentId, String version, RunnerOptions runnerOptions)
used for instantiating VisualGrid Runner
-
EyesRunner
public EyesRunner(String baseAgentId, String version, RunnerOptions runnerOptions, AbstractSDKListener listener)
used for instantiating VisualGrid Runner
-
EyesRunner
public EyesRunner(String baseAgentId, String version, String protocol, String[] commands, AbstractSDKListener listener)
used for instantiating Classic Runner
-
EyesRunner
public EyesRunner(String baseAgentId, String version, String protocol, String[] commands, AbstractSDKListener listener, RunnerOptions runnerOptions)
used for instantiating VisualGrid Runner
-
-
Method Detail
-
runServer
protected void runServer(String baseAgentId, String version, String protocol, String[] commands, AbstractSDKListener listener)
-
getAllTestResults
public TestResultsSummary getAllTestResults(boolean shouldThrowException)
-
setLogHandler
public void setLogHandler(com.applitools.eyes.LogHandler logHandler)
-
logSessionResultsAndThrowException
public void logSessionResultsAndThrowException(boolean throwEx, TestResults results)
-
getStaleElementException
protected StaleElementReferenceException getStaleElementException()
-
getAllTestResults
public TestResultsSummary getAllTestResults()
-
setDontCloseBatches
public void setDontCloseBatches(boolean dontCloseBatches)
-
isDontCloseBatches
public Boolean isDontCloseBatches()
-
setRemoveDuplicateTests
public void setRemoveDuplicateTests(Boolean removeDuplicateTests)
-
getRemoveDuplicateTests
public Boolean getRemoveDuplicateTests()
-
getLogger
public com.applitools.eyes.Logger getLogger()
-
setProxy
public void setProxy(com.applitools.eyes.AbstractProxySettings proxySettings)
-
getProxy
public com.applitools.eyes.AbstractProxySettings getProxy()
-
getAgentId
public String getAgentId()
-
getManagerRef
public Reference getManagerRef()
manager reference
-
setManagerRef
public void setManagerRef(Reference managerRef)
- Parameters:
managerRef- The manager reference
-
getCommandExecutor
public CommandExecutor getCommandExecutor()
command executor
-
setCommandExecutor
public void setCommandExecutor(CommandExecutor commandExecutor)
- Parameters:
commandExecutor- The command executor
-
getRefer
protected Refer getRefer()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-