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 String
getDeviceInfo()
Gets the device info (not part of test signature)com.applitools.eyes.RectangleSize
getDisplaySize()
Gets display size.String
getHostingApp()
Gets hosting app.String
getHostingAppInfo()
Gets the hosting app info info (not part of test signature)String
getInferred()
Gets inferred.String
getOs()
Gets os.String
getOsInfo()
Gets the device info (not part of test signature)void
setDeviceInfo(String deviceInfo)
Sets the device info (not part of test signature)void
setDisplaySize(com.applitools.eyes.RectangleSize size)
Sets display size.void
setHostingApp(String hostingApp)
Sets hosting app.void
setHostingAppInfo(String hostingAppInfo)
Sets the hosting app info info (not part of test signature)void
setInferred(String inferred)
Sets inferred.void
setOs(String os)
Sets os.void
setOsInfo(String osInfo)
Sets the os info (not part of test signature)String
toString()
-
-
-
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 ornull
if unknown.hostingApp
- the application hosting the application under test ornull
* if unknown.displaySize
- the display size of the application ornull
if 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 ornull
if unknown.hostingApp
- the application hosting the application under test ornull
if unknown.displaySize
- the display size of the application ornull
if 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
null
if 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
null
if unknown.
-
setOs
public void setOs(String os)
Sets os.- Parameters:
os
- - the OS hosting the application under test ornull
if unknown.
-
getHostingApp
public String getHostingApp()
Gets hosting app.- Returns:
- the application hosting the application under test or
null
if unknown.
-
setHostingApp
public void setHostingApp(String hostingApp)
Sets hosting app.- Parameters:
hostingApp
- - the application hosting the application under test ornull
if unknown.
-
getDisplaySize
public com.applitools.eyes.RectangleSize getDisplaySize()
Gets display size.- Returns:
- the display size of the application or
null
if unknown.
-
setDisplaySize
public void setDisplaySize(com.applitools.eyes.RectangleSize size)
Sets display size.- Parameters:
size
- - the display size of the application ornull
if 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
-
-