public class VisualGridEyes extends Object implements ISeleniumEyes
Constructor and Description |
---|
VisualGridEyes(com.applitools.eyes.visualgrid.services.VisualGridRunner renderingGridManager,
com.applitools.eyes.config.ConfigurationProvider configurationProvider) |
Modifier and Type | Method and Description |
---|---|
com.applitools.eyes.TestResults |
abort() |
void |
abortAsync() |
com.applitools.eyes.TestResults |
abortIfNotClosed() |
void |
addProperty(String name,
String value)
Adds a property to be sent to the server.
|
void |
apiKey(String apiKey) |
void |
check(com.applitools.ICheckSettings... checkSettings) |
void |
check(com.applitools.ICheckSettings checkSettings) |
void |
check(String name,
com.applitools.ICheckSettings checkSettings) |
void |
clearProperties()
Clears the list of custom properties.
|
com.applitools.eyes.TestResults |
close(boolean throwException) |
void |
closeAsync() |
Map<String,com.applitools.eyes.RunningTest> |
getAllRunningTests() |
List<com.applitools.eyes.TestResultContainer> |
getAllTestResults() |
String |
getApiKey() |
com.applitools.eyes.IBatchCloser |
getBatchCloser() |
String |
getBatchId() |
EyesSeleniumDriver |
getDriver() |
String |
getFullAgentId() |
boolean |
getIsDisabled() |
boolean |
getIsOpen() |
com.applitools.eyes.Logger |
getLogger() |
com.applitools.eyes.LogHandler |
getLogHandler() |
com.applitools.eyes.AbstractProxySettings |
getProxy() |
URI |
getServerUrl() |
boolean |
isCompleted() |
boolean |
isEyesClosed() |
org.openqa.selenium.WebDriver |
open(org.openqa.selenium.WebDriver webDriver) |
org.openqa.selenium.WebDriver |
open(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
com.applitools.eyes.RectangleSize viewportSize) |
void |
proxy(com.applitools.eyes.AbstractProxySettings abstractProxySettings) |
void |
serverUrl(String serverUrl) |
void |
setApiKey(String apiKey) |
void |
setBatch(com.applitools.eyes.BatchInfo batch)
Sets the batch in which context future tests will run or
null
if tests are to run standalone. |
void |
setDebugScreenshotsPath(String pathToSave) |
void |
setDebugScreenshotsPrefix(String prefix) |
void |
setImageProvider(com.applitools.eyes.capture.ImageProvider imageProvider) |
void |
setIsDisabled(Boolean disabled) |
void |
setLogHandler(com.applitools.eyes.LogHandler logHandler)
Sets a handler of log messages generated by this API.
|
void |
setSaveDebugScreenshots(boolean saveDebugScreenshots) |
void |
setServerConnector(com.applitools.connectivity.ServerConnector serverConnector) |
void |
setServerUrl(String serverUrl) |
String |
toString() |
public VisualGridEyes(com.applitools.eyes.visualgrid.services.VisualGridRunner renderingGridManager, com.applitools.eyes.config.ConfigurationProvider configurationProvider)
public void setLogHandler(com.applitools.eyes.LogHandler logHandler)
setLogHandler
in interface com.applitools.eyes.IEyesBase
logHandler
- Handles log messages generated by this API.public com.applitools.eyes.LogHandler getLogHandler()
getLogHandler
in interface com.applitools.eyes.IEyesBase
public void apiKey(String apiKey)
apiKey
in interface com.applitools.eyes.visualgrid.services.IEyes
public void serverUrl(String serverUrl)
serverUrl
in interface com.applitools.eyes.visualgrid.services.IEyes
public void setImageProvider(com.applitools.eyes.capture.ImageProvider imageProvider)
public void setSaveDebugScreenshots(boolean saveDebugScreenshots)
public void setDebugScreenshotsPath(String pathToSave)
public void setDebugScreenshotsPrefix(String prefix)
public org.openqa.selenium.WebDriver open(org.openqa.selenium.WebDriver driver, String appName, String testName, com.applitools.eyes.RectangleSize viewportSize) throws com.applitools.eyes.EyesException
open
in interface ISeleniumEyes
com.applitools.eyes.EyesException
public org.openqa.selenium.WebDriver open(org.openqa.selenium.WebDriver webDriver)
open
in interface ISeleniumEyes
public com.applitools.eyes.TestResults close(boolean throwException)
close
in interface com.applitools.eyes.visualgrid.services.IEyes
public com.applitools.eyes.TestResults abortIfNotClosed()
abortIfNotClosed
in interface com.applitools.eyes.IEyesBase
public com.applitools.eyes.TestResults abort()
abort
in interface com.applitools.eyes.IEyesBase
public void closeAsync()
closeAsync
in interface com.applitools.eyes.IEyesBase
public void abortAsync()
abortAsync
in interface com.applitools.eyes.IEyesBase
public boolean getIsOpen()
getIsOpen
in interface com.applitools.eyes.IEyesBase
public String getApiKey()
getApiKey
in interface com.applitools.eyes.IEyesBase
getApiKey
in interface com.applitools.eyes.visualgrid.services.IEyes
public void setApiKey(String apiKey)
public void setIsDisabled(Boolean disabled)
setIsDisabled
in interface com.applitools.eyes.IEyesBase
public boolean getIsDisabled()
getIsDisabled
in interface com.applitools.eyes.IEyesBase
public URI getServerUrl()
getServerUrl
in interface com.applitools.eyes.IEyesBase
getServerUrl
in interface com.applitools.eyes.visualgrid.services.IEyes
public void setServerUrl(String serverUrl)
public void proxy(com.applitools.eyes.AbstractProxySettings abstractProxySettings)
proxy
in interface com.applitools.eyes.visualgrid.services.IEyes
public com.applitools.eyes.AbstractProxySettings getProxy()
getProxy
in interface com.applitools.eyes.visualgrid.services.IEyes
public boolean isEyesClosed()
isEyesClosed
in interface com.applitools.eyes.visualgrid.services.IEyes
public void check(com.applitools.ICheckSettings... checkSettings)
check
in interface com.applitools.eyes.visualgrid.services.IEyes
public void check(String name, com.applitools.ICheckSettings checkSettings)
check
in interface com.applitools.eyes.visualgrid.services.IEyes
public void check(com.applitools.ICheckSettings checkSettings)
check
in interface com.applitools.eyes.visualgrid.services.IEyes
public com.applitools.eyes.Logger getLogger()
getLogger
in interface com.applitools.eyes.IEyesBase
getLogger
in interface com.applitools.eyes.visualgrid.services.IEyes
public Map<String,com.applitools.eyes.RunningTest> getAllRunningTests()
getAllRunningTests
in interface com.applitools.eyes.visualgrid.services.IEyes
public void setServerConnector(com.applitools.connectivity.ServerConnector serverConnector)
public String getFullAgentId()
getFullAgentId
in interface com.applitools.eyes.IEyesBase
public void setBatch(com.applitools.eyes.BatchInfo batch)
null
if tests are to run standalone.batch
- The batch info to set.public void addProperty(String name, String value)
addProperty
in interface com.applitools.eyes.IEyesBase
name
- The property name.value
- The property value.public void clearProperties()
clearProperties
in interface com.applitools.eyes.IEyesBase
public EyesSeleniumDriver getDriver()
getDriver
in interface ISeleniumEyes
public com.applitools.eyes.IBatchCloser getBatchCloser()
getBatchCloser
in interface com.applitools.eyes.visualgrid.services.IEyes
public String getBatchId()
getBatchId
in interface com.applitools.eyes.visualgrid.services.IEyes
public List<com.applitools.eyes.TestResultContainer> getAllTestResults()
getAllTestResults
in interface com.applitools.eyes.visualgrid.services.IEyes
public boolean isCompleted()
isCompleted
in interface com.applitools.eyes.visualgrid.services.IEyes
Copyright © 2022. All rights reserved.