Package com.applitools.eyes
Class AppEnvironment
java.lang.Object
com.applitools.eyes.AppEnvironment
The environment in which the application under test is executing.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionGets the device info (not part of test signature)com.applitools.eyes.RectangleSizeGets display size.Gets hosting app.Gets the hosting app info info (not part of test signature)Gets inferred.getOs()Gets os.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.voidSets os.voidSets the os info (not part of test signature)toString()
-
Constructor Details
-
AppEnvironment
public AppEnvironment()Creates a new AppEnvironment instance. -
AppEnvironment
Creates a new AppEnvironment instance.- Parameters:
inferred- the inferred environment information.
-
AppEnvironment
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 Details
-
getInferred
Gets inferred.- Returns:
- the information inferred from the execution environment or
nullif no information could be inferred.
-
setInferred
Sets inferred.- Parameters:
inferred- - the inferred environment information.
-
getOs
Gets os.- Returns:
- the OS hosting the application under test or
nullif unknown.
-
setOs
Sets os.- Parameters:
os- - the OS hosting the application under test ornullif unknown.
-
getHostingApp
Gets hosting app.- Returns:
- the application hosting the application under test or
nullif unknown.
-
setHostingApp
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.
-
toString
-
getDeviceInfo
Gets the device info (not part of test signature)- Returns:
- the device info
-
setDeviceInfo
Sets the device info (not part of test signature)- Parameters:
deviceInfo- the device info
-
getOsInfo
-
setOsInfo
Sets the os info (not part of test signature)- Parameters:
osInfo- the os info
-
getHostingAppInfo
Gets the hosting app info info (not part of test signature)- Returns:
- the hosting app info
-
setHostingAppInfo
Sets the hosting app info info (not part of test signature)- Parameters:
hostingAppInfo- the hosting app
-