GetRoProperty In QTP For Java Applet

What is : Object identification properties can be used in the object repository description, in programmatic descriptions, in checkpoint and output value steps, and as argument values for the GetTOProperty and GetROProperty methods.


The JavaApplet test object supports the identification properties listed in the table below. Note, however, that some of the properties may not be applicable for a specific JavaApplet object and some objects may have additional identification properties that are generated dynamically.


Property

Description

abs_x

The object's absolute x-coordinate (left) relative to the screen (in pixels).

abs_y

The object's absolute y-coordinate (top) relative to the screen (in pixels).

attached text

The static text that is attached to an object.

background

The object's background color.

class description

The general object type (i.e. list, button, table, etc...).

class_path

The Java class hierarchy of the object's Java class.

developer name

The object's internal name.

displayable

Indicates whether the object can be displayed.

Possible values:      
       0: Cannot be displayed.
       1: Can be displayed.

displayed

Indicates whether the object is displayed on the screen.

Possible values:      
       True
       False

enabled

Indicates whether the object is enabled.

Possible values:      
       True
       False

focusable

Indicates whether the focus can be set on the object.

Possible values:      
       0: The focus cannot be set on the object.
       1: The focus can be set on the object.

focused

Indicates whether the object has the focus.

Possible values:      
       True
       False

foreground

The object's foreground color.

height

The object's height (in pixels).

hwnd

The run-time object's window handle.

index

The ordinal identifier that QuickTest assigns to the object to indicate the order in which the object appears in the code relative to other objects with an otherwise identical description. This property cannot be used with GetROProperty.

Values begin with 0.

java window

Indicates whether the object is a Java window.

Possible values:      
       True
       False

label

The object's label.

location

The ordinal identifier that QuickTest assigns to the object to indicate where the object appears within the window, frame, or dialog box. Values are assigned from top to bottom, and left to right. This property cannot be used with GetROProperty.

Values begin with 0.

maximizable

Indicates whether the window is maximizable.

Possible values:      
       True
       False

maximized

Indicates whether the window is maximized.

Possible values:      
       True
       False

minimizable

Indicates whether the window is minimizable.

Possible values:      
       True
       False

minimized

Indicates whether the window is minimized.

Possible values:      
       True
       False

opaque

Indicates whether the object is transparent or opaque.

Possible values:      
       0: Transparent. Background color and any graphics are visible behind the control.
       1:
Opaque. The area behind the control is not visible.

path

The object's hierarchy (object ancestors).

resizable

Indicates whether the window is resizable.

Possible values:      
       True
       False

tagname

The test object's name.

toolkit class

The object's Java class name.

width

The object's width (in pixels).

x

The object's x-coordinate (left) relative to the parent object (in pixels).

y

The object's y-coordinate (top) relative to the parent object (in pixels).
The below stuff is very important and very frequently used by any QTP programmer in Object identification using QTP.

Post a Comment

Previous Post Next Post