Class AiUtil

java.lang.Object
com.hp.lft.sdk.ai.AiUtil

public class AiUtil extends Object
A utility object for Artificial-Intelligence-based (AI-based) testing.+
  • Constructor Details

    • AiUtil

      public AiUtil()
  • Method Details

    • registerCustomClass

      public static void registerCustomClass(String className, Path imagePath) throws GeneralLeanFtException, IOException
      Registers an image as AI custom class.
      Parameters:
      className - the class name to be registered.
      imagePath - the path of the image to be registered.
      Throws:
      GeneralLeanFtException - if error occurs during execution
      IOException - if error occurs during execution
    • unregisterCustomClass

      public static void unregisterCustomClass(String className) throws GeneralLeanFtException
      Unregisters an AI custom class.
      Parameters:
      className - the class name to be unregistered.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • unregisterAllCustomClasses

      public static void unregisterAllCustomClasses() throws GeneralLeanFtException
      Unregisters all custom classes.
      Throws:
      GeneralLeanFtException - if error occurs during execution