Table of Contents

Class Description

The base class for all Description classes that support the index and Visual Relation Identifier (VRI) test object properties.

Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class Description : PropertiesDescription, ICloneable, IDescription

Constructors

Description()

Constructs an empty description.

Declaration
public Description()

Properties

Index

The 0-based index of this object, relative to all other objects with an otherwise identical description.

Declaration
public uint? Index { get; set; }
Property Value
Type Description
uint?

ObjectProperties

The concrete test object properties, including custom properties created by the developer of the object.

Declaration
public IDictionary<string, object> ObjectProperties { get; set; }
Property Value
Type Description
IDictionary<string, object>

Vri

Distinguishes this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.

Declaration
public List<VisualRelation> Vri { get; set; }
Property Value
Type Description
List<VisualRelation>
Remarks

For example if you have 10 identical buttons with the text label "Buy" and no other real property to distinguish between them, you can use VRI to indicate that this test object represents the "Buy" button that is located to the right of the image of a specific product. The Vri property value is a VisualRelation object that defines the test object you are relating to, and where that related object is located on the screen relative to the object to identify. For more details, see the Help Center.

Implements

ICloneable
IDescription