Package com.hp.lft.sdk.mobile
Class UiObjectBaseDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.mobile.UiObjectBaseDescription
- All Implemented Interfaces:
- CloneableObject,- Description,- com.hp.lft.sdk.internal.DescriptionWithVri,- Cloneable
- Direct Known Subclasses:
- ButtonDescription,- CalendarDescription,- CheckBoxDescription,- DropDownDescription,- EditFieldDescription,- LabelDescription,- PaginatorDescription,- RadioGroupDescription,- RecyclerViewDescription,- SliderDescription,- StepperDescription,- TableDescription,- TabStripDescription,- ToggleDescription,- UiObjectDescription,- ViewDescription,- WebViewDescription
public class UiObjectBaseDescription
extends PropertiesDescription
implements com.hp.lft.sdk.internal.DescriptionWithVri
The base description of all test objects in a mobile application.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classHelper class for derived Builder classes.
- 
Field SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructorsModifierConstructorDescriptionConstructs a new instance of UiObjectDescriptionBase.protectedInitializes a new instance of the UiObjectBaseDescription class using the Builder pattern.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidCreates an exact copy of the test object with its description.Returns the accessibility ID of the mobile object.Returns the test object class name used by OpenText Functional Testing Lab.Returns the table container,if the object is in a table.Returns the ordinal number assigned to the object to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.Returns the native class of the mobile control.Returns the concrete test object properties, including custom properties created by the developer of the control.Returns the resource ID of the object.getText()Returns text of the mobile object.getVRI()Returns the VisualRelation definition.Indicates whether the mobile object can be checked.Indicates whether the mobile object is checked.Indicates whether the control can be tapped.Indicates whether the object is enabled.Indicates whether the control can receive focus.Indicates whether the mobile control is in focus.voidsetAccessibilityId(StringProperty accessibilityId) Sets the accessibility ID of the mobile object.voidsetAccessibilityId(String accessibilityId) Sets the accessibility ID of the mobile object.voidsetCheckable(Boolean isCheckable) Sets whether the mobile object can be checked.voidsetChecked(Boolean isChecked) Sets whether the mobile object is checked.voidsetClassName(String className) Sets the test object class name used by OpenText Functional Testing Lab.voidsetClickable(Boolean isClickable) Sets whether the control can be tapped.voidsetContainer(String container) Sets the table container, if the object is in a table.voidsetEnabled(Boolean isEnabled) Sets whether the object is enabled.voidsetFocusable(Boolean isFocusable) Sets whether the control can receive focus.voidsetFocused(Boolean isFocused) Sets whether the mobile control is in focus.voidsetMobileCenterIndex(Integer mobileCenterIndex) Sets the ordinal number assigned to the object to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.voidsetNativeClass(StringProperty nativeClass) Sets the native class of the mobile control.voidsetNativeClass(String nativeClass) Sets the native class of the mobile control.voidsetObjectProperties(Map<String, Object> objectProperties) Sets the test object properties, including custom properties of a custom control.voidsetResourceId(StringProperty resourceId) Sets the resource ID of the object.voidsetResourceId(String resourceId) Sets the resource ID of the object.voidsetText(StringProperty text) Sets text of the mobile object.voidSets text of the mobile object.voidsetVRI(VisualRelation... vriRelations) Sets a VisualRelation definition.voidsetVRI(List<VisualRelation> visualRelations) Sets a VisualRelation definition.Methods 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- 
UiObjectBaseDescriptionpublic UiObjectBaseDescription()Constructs a new instance of UiObjectDescriptionBase.
- 
UiObjectBaseDescriptionInitializes a new instance of the UiObjectBaseDescription class using the Builder pattern.- Parameters:
- init- the Builder pattern.
 
 
- 
- 
Method Details- 
setAccessibilityIdSets the accessibility ID of the mobile object.- Parameters:
- accessibilityId- the accessibility ID of the mobile object.
 
- 
setAccessibilityIdSets the accessibility ID of the mobile object.- Parameters:
- accessibilityId- a StringProperty (or RegExpProperty) representing the accessibility ID of the mobile object.
 
- 
getAccessibilityIdReturns the accessibility ID of the mobile object.- Returns:
- the accessibility ID of the mobile object.
 
- 
setClassNameSets the test object class name used by OpenText Functional Testing Lab.- Parameters:
- className- the test object class name used by OpenText Functional Testing Lab.
 
- 
getClassNameReturns the test object class name used by OpenText Functional Testing Lab.- Returns:
- the test object class name used by OpenText Functional Testing Lab.
 
- 
setContainerSets the table container, if the object is in a table. (iOS Only)- Parameters:
- container- the table container. (iOS Only)
 
- 
getContainerReturns the table container,if the object is in a table. (iOS Only)- Returns:
- the table container.
 
- 
setResourceIdSets the resource ID of the object. (Android Only)- Parameters:
- resourceId- the resource ID of the object. (Android Only)
 
- 
setResourceIdSets the resource ID of the object. (Android Only)- Parameters:
- resourceId- a StringProperty (or RegExpProperty) representing the resource ID of the object. (Android Only)
 
- 
getResourceIdReturns the resource ID of the object. (Android Only)- Returns:
- the resource ID of the object. (Android Only)
 
- 
setMobileCenterIndexSets the ordinal number assigned to the object to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.- Parameters:
- mobileCenterIndex- the ordinal number assigned to the object.
 
- 
getMobileCenterIndexReturns the ordinal number assigned to the object to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.- Returns:
- the ordinal number assigned to the object.
 
- 
getVRIReturns the VisualRelation definition.
 The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.- Specified by:
- getVRIin interface- com.hp.lft.sdk.internal.DescriptionWithVri
- Returns:
- a VisualRelationobject containing the VRI definition for this object.
 
- 
setVRISets a VisualRelation definition.
 The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.- Specified by:
- setVRIin interface- com.hp.lft.sdk.internal.DescriptionWithVri
- Parameters:
- visualRelations- the- VisualRelationobject containing the VRI definition for this object.
 
- 
setVRISets a VisualRelation definition.
 The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.- Specified by:
- setVRIin interface- com.hp.lft.sdk.internal.DescriptionWithVri
- Parameters:
- vriRelations- the- VisualRelationobject containing the VRI definition for this object.
 
- 
setNativeClassSets the native class of the mobile control.- Parameters:
- nativeClass- the native class of the mobile control.
 
- 
setNativeClassSets the native class of the mobile control.- Parameters:
- nativeClass- a- StringPropertyor- RegExpPropertyrepresenting the native class of the mobile control.
 
- 
getNativeClassReturns the native class of the mobile control.- Returns:
- the native class of the mobile control.
 
- 
setEnabledSets whether the object is enabled.- Parameters:
- isEnabled- true if enabled.
 
- 
isEnabledIndicates whether the object is enabled.- Returns:
- true if enabled.
 
- 
setClickableSets whether the control can be tapped.- Parameters:
- isClickable- true if has the control can be tapped.
 
- 
isClickableIndicates whether the control can be tapped.- Returns:
- true if has the control can be tapped.
 
- 
setFocusableSets whether the control can receive focus.- Parameters:
- isFocusable- true if has the control can receive focus.
 
- 
isFocusableIndicates whether the control can receive focus.- Returns:
- true if has the control can receive focus.
 
- 
setFocusedSets whether the mobile control is in focus.- Parameters:
- isFocused- true if has the mobile control is in focus.
 
- 
isFocusedIndicates whether the mobile control is in focus.- Returns:
- true if has the mobile control is in focus.
 
- 
cloneToCreates an exact copy of the test object with its description.- Overrides:
- cloneToin class- com.hp.lft.sdk.internal.PropertiesDescriptionBase
- Throws:
- CloneNotSupportedException
 
- 
setTextSets text of the mobile object.- Parameters:
- text- the text of the mobile object.
 
- 
setTextSets text of the mobile object.- Parameters:
- text- a StringProperty (or RegExpProperty) representing text of the mobile object.
 
- 
getTextReturns text of the mobile object.- Returns:
- text of the mobile object.
 
- 
setCheckableSets whether the mobile object can be checked.- Parameters:
- isCheckable- true if the mobile object can be checked.
 
- 
isCheckableIndicates whether the mobile object can be checked.- Returns:
- true if the object can be checked.
 
- 
setCheckedSets whether the mobile object is checked. (Relevant for objects that can have a check mark.)- Parameters:
- isChecked- true to mark the mobile object as checked.
 
- 
isCheckedIndicates whether the mobile object is checked.- Returns:
- true if the mobile object is checked.
 
- 
setObjectPropertiesSets the test object properties, including custom properties of a custom control.- Parameters:
- objectProperties- the test object properties
 
- 
getObjectPropertiesReturns the concrete test object properties, including custom properties created by the developer of the control.- Returns:
- the concrete test object properties, including custom properties created by the developer of the control.
 
 
-