Package com.hp.lft.sdk.ai
Class AiUtil
java.lang.Object
com.hp.lft.sdk.ai.AiUtil
A utility object for Artificial-Intelligence-based (AI-based) testing.+
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
registerCustomClass
(String className, Path imagePath) Registers an image as AI custom class.static void
Unregisters all custom classes.static void
unregisterCustomClass
(String className) Unregisters an AI custom class.
-
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 executionIOException
- if error occurs during execution
-
unregisterCustomClass
Unregisters an AI custom class.- Parameters:
className
- the class name to be unregistered.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
unregisterAllCustomClasses
Unregisters all custom classes.- Throws:
GeneralLeanFtException
- if error occurs during execution
-