Package com.hp.lft.sdk.insight
Class InsightDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.insight.InsightDescription
- All Implemented Interfaces:
- CloneableObject,- Description,- com.hp.lft.sdk.internal.DescriptionWithVri,- Cloneable
The description of an Insight test object.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.hp.lft.sdk.DescriptionBaseDescriptionBase.Builder, DescriptionBase.Init<T extends DescriptionBase.Init<T>>
- 
Field SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new instance of the InsightDescription class.InsightDescription(RenderedImage image) Creates a new InsightDescription instance with the given image as the image source to be used.
 Important: Only images of type: BMP, PNG, and JPG are supported.InsightDescription(RenderedImage image, int similarity) Creates a new InsightDescription instance with the given image as the image source to be used, and a similarity value.
- 
Method SummaryModifier and TypeMethodDescriptiongetImage()Returns the image that will be used as the source image for the Insight test object.Returns the percentage value that specifies how similar a control in the application has to be to the test object image for it to be considered a match.voidsetImage(RenderedImage image) Sets the image, that will be used as the source image for the Insight test object.
 Important: Only images of type: BMP, PNG, and JPG are supported.voidsetSimilarity(Integer similarity) Sets the percentage value that specifies how similar a control in the application has to be to the test object image for it to be considered a match.Methods inherited from class com.hp.lft.sdk.DescriptionBasecloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescriptioncloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBasegetValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hp.lft.sdk.CloneableObjectclone
- 
Constructor Details- 
InsightDescriptionpublic InsightDescription()Creates a new instance of the InsightDescription class.
- 
InsightDescriptionCreates a new InsightDescription instance with the given image as the image source to be used.
 Important: Only images of type: BMP, PNG, and JPG are supported. Behavior for other image types is undefined.
 The default similarity value (80%) is used.- Parameters:
- image- RenderedImage representing the image to use for a visual match. This image is searched for within the parent Test Object (Only images of type: BMP, PNG, and JPG are supported).
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
InsightDescriptionCreates a new InsightDescription instance with the given image as the image source to be used, and a similarity value.- Parameters:
- image- a RenderedImage representing the image to use for a visual match OpenText Functional Testing for Developers will search the parent Test Object for.
- similarity- a percentage value that specifies how similar a control in the application has to be to the test object image for it to be considered a match.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
- 
- 
Method Details- 
setImageSets the image, that will be used as the source image for the Insight test object.
 Important: Only images of type: BMP, PNG, and JPG are supported. Behavior for other image types is undefined.- Parameters:
- image- the image, that will be used as the source image for the Insight test object (Only images of type: BMP, PNG, and JPG are supported).
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getImageReturns the image that will be used as the source image for the Insight test object.- Returns:
- the image that will be used as the source image for the Insight test object.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setSimilaritySets the percentage value that specifies how similar a control in the application has to be to the test object image for it to be considered a match.- Parameters:
- similarity- the percentage value that specifies how similar a control in the application has to be to the test object image for it to be considered a match.
 
- 
getSimilarityReturns the percentage value that specifies how similar a control in the application has to be to the test object image for it to be considered a match.- Returns:
- the percentage value that specifies how similar a control in the application has to be to the test object image for it to be considered a match.
 
 
-