Class AppEnvironment


  • public class AppEnvironment
    extends Object
    The environment in which the application under test is executing.
    • 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 or null if unknown.
        hostingApp - the application hosting the application under test or null * if unknown.
        displaySize - the display size of the application or null 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 or null if unknown.
        hostingApp - the application hosting the application under test or null if unknown.
        displaySize - the display size of the application or null if unknown.
        deviceName - specifies
        osInfo - the os info
        hostingAppInfo - 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 or null 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 or null 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 or null 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