Package com.applitools.eyes
Class AppEnvironment
- java.lang.Object
-
- com.applitools.eyes.AppEnvironment
-
public class AppEnvironment extends Object
The environment in which the application under test is executing.
-
-
Constructor Summary
Constructors Constructor Description AppEnvironment()Creates a new AppEnvironment instance.AppEnvironment(String inferred)Creates a new AppEnvironment instance.AppEnvironment(String os, String hostingApp, com.applitools.eyes.RectangleSize displaySize)Creates a new AppEnvironment instance.AppEnvironment(String os, String hostingApp, com.applitools.eyes.RectangleSize displaySize, String deviceName, String osInfo, String hostingAppInfo)Creates a new AppEnvironment instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDeviceInfo()Gets the device info (not part of test signature)com.applitools.eyes.RectangleSizegetDisplaySize()Gets display size.StringgetHostingApp()Gets hosting app.StringgetHostingAppInfo()Gets the hosting app info info (not part of test signature)StringgetInferred()Gets inferred.StringgetOs()Gets os.StringgetOsInfo()Gets the device info (not part of test signature)voidsetDeviceInfo(String deviceInfo)Sets the device info (not part of test signature)voidsetDisplaySize(com.applitools.eyes.RectangleSize size)Sets display size.voidsetHostingApp(String hostingApp)Sets hosting app.voidsetHostingAppInfo(String hostingAppInfo)Sets the hosting app info info (not part of test signature)voidsetInferred(String inferred)Sets inferred.voidsetOs(String os)Sets os.voidsetOsInfo(String osInfo)Sets the os info (not part of test signature)StringtoString()
-
-
-
Constructor Detail
-
AppEnvironment
public AppEnvironment()
Creates a new AppEnvironment instance.
-
AppEnvironment
public AppEnvironment(String inferred)
Creates a new AppEnvironment instance.- Parameters:
inferred- the inferred environment information.
-
AppEnvironment
public AppEnvironment(String os, String hostingApp, com.applitools.eyes.RectangleSize displaySize)
Creates a new AppEnvironment instance.- Parameters:
os- the OS hosting the application under test ornullif unknown.hostingApp- the application hosting the application under test ornull* if unknown.displaySize- the display size of the application ornullif unknown.
-
AppEnvironment
public AppEnvironment(String os, String hostingApp, com.applitools.eyes.RectangleSize displaySize, String deviceName, String osInfo, String hostingAppInfo)
Creates a new AppEnvironment instance.- Parameters:
os- the OS hosting the application under test ornullif unknown.hostingApp- the application hosting the application under test ornullif unknown.displaySize- the display size of the application ornullif unknown.deviceName- specifiesosInfo- the os infohostingAppInfo- the hosting app info
-
-
Method Detail
-
getInferred
public String getInferred()
Gets inferred.- Returns:
- the information inferred from the execution environment or
nullif no information could be inferred.
-
setInferred
public void setInferred(String inferred)
Sets inferred.- Parameters:
inferred- - the inferred environment information.
-
getOs
public String getOs()
Gets os.- Returns:
- the OS hosting the application under test or
nullif unknown.
-
setOs
public void setOs(String os)
Sets os.- Parameters:
os- - the OS hosting the application under test ornullif unknown.
-
getHostingApp
public String getHostingApp()
Gets hosting app.- Returns:
- the application hosting the application under test or
nullif unknown.
-
setHostingApp
public void setHostingApp(String hostingApp)
Sets hosting app.- Parameters:
hostingApp- - the application hosting the application under test ornullif unknown.
-
getDisplaySize
public com.applitools.eyes.RectangleSize getDisplaySize()
Gets display size.- Returns:
- the display size of the application or
nullif unknown.
-
setDisplaySize
public void setDisplaySize(com.applitools.eyes.RectangleSize size)
Sets display size.- Parameters:
size- - the display size of the application ornullif unknown.
-
getDeviceInfo
public String getDeviceInfo()
Gets the device info (not part of test signature)- Returns:
- the device info
-
setDeviceInfo
public void setDeviceInfo(String deviceInfo)
Sets the device info (not part of test signature)- Parameters:
deviceInfo- the device info
-
getOsInfo
public String getOsInfo()
Gets the device info (not part of test signature)- Returns:
- the os info
-
setOsInfo
public void setOsInfo(String osInfo)
Sets the os info (not part of test signature)- Parameters:
osInfo- the os info
-
getHostingAppInfo
public String getHostingAppInfo()
Gets the hosting app info info (not part of test signature)- Returns:
- the hosting app info
-
setHostingAppInfo
public void setHostingAppInfo(String hostingAppInfo)
Sets the hosting app info info (not part of test signature)- Parameters:
hostingAppInfo- the hosting app
-
-