|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester Proxy SDK Reference Project Version 2.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rational.test.ft.sys.RegisteredObject
com.rational.test.ft.domain.ProxyTestObject
com.rational.test.ft.domain.java.JavaProxy
com.rational.test.ft.domain.java.JavaGuiProxy
com.rational.test.ft.domain.java.swt.ControlProxy
com.rational.test.ft.domain.java.swt.SwtGraphicalSubitemProxy
com.rational.test.ft.domain.java.swt.ComboProxy
public class ComboProxy
This is the proxy class for org.eclipse.swt.widgets.Combo.
GuiSubitemTestObject
| Type | Desciption | Data Class |
|---|---|---|
| list | List Elements | ITestDataList |
| selected | Selected List Elements | ITestDataText |
| Property | Usage |
|---|---|
| .class | The Java full class name of the test object. |
| .classIndex | The zero-based index of the class relative to the immediate parent in the object map. |
| .priorLabel | The text of a preceding label. Suppressed if there is no preceding label. |
| .groupText | The text of a group parent. Only available if parent is a group. Omitted if the group parent has no visible text. |
| .toolTipText | The text from the associated tool tip, omitted if there is no associated tool tip. |
| .itemCount | The number of items in the list. |
| .itemText | The text for the up to ten items from the list. |
| Subitem | Usage |
|---|---|
Text |
Defines the element with the specified visible text. |
Index |
Defines the element at the specified zero-based index. |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.rational.test.ft.domain.java.swt.ControlProxy |
|---|
ControlProxy.ChildEnumerator, ControlProxy.ImmediateChildEnumerator |
| Field Summary |
|---|
| Fields inherited from class com.rational.test.ft.domain.java.swt.ControlProxy |
|---|
childrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, clickArgs, currentMethod, GROUPTEXT, GROUPTEXTWEIGHT, HANDLE, MAPPABLECLASSINDEX, MAPPABLECLASSINDEXWEIGHT, MAX_NAME, predownScreenRect, PRIORLABEL, PRIORLABELWEIGHT, TOOLTIPTEXT, TOOLTIPTEXTWEIGHT |
| Fields inherited from class com.rational.test.ft.domain.java.JavaGuiProxy |
|---|
LEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTION, topLevelWindow |
| Fields inherited from class com.rational.test.ft.domain.java.JavaProxy |
|---|
debug, uniqueId |
| Fields inherited from class com.rational.test.ft.sys.RegisteredObject |
|---|
theTestObject |
| Fields inherited from interface com.rational.test.ft.domain.IDataDriven |
|---|
INCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS |
| Constructor Summary | |
|---|---|
ComboProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object as a member variable for the proxy. |
|
| Method Summary | |
|---|---|
void |
click()
Left mouse click on the center point of the associated TestObject; is a simple shortcut to the click method with a modifier parameter (modifier set to MOUSE_LEFT). |
void |
clickForComboBox()
Perform a mouse n-click action on the specified coordinates relative to the associated TestObject. |
void |
clickForSetText()
|
protected void |
extendSelect(int index)
This method extends the current selection to include a subitem at a specified index. |
ProxyTestObject[] |
getChildren()
Uses getChildren to implement. |
protected java.awt.Rectangle |
getClickActionRect()
Gets the screen relative rectangle and throws an invalid action exception if the rect is not valid. |
com.rational.test.ft.sys.MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support data driving. |
int |
getItemCount()
Gets the number of items. |
int |
getItemHeight()
Returns the height of the area which would be used to display of the items |
protected int |
getItemIndex(java.lang.String item)
Returns the index in the List of item . |
protected int |
getItemIndex(com.rational.test.ft.script.Subitem item)
Returns the index in the List of item. |
protected int |
getItemIndex(com.rational.test.ft.script.Text item)
Returns the index in the List of item. |
java.lang.String[] |
getItems()
Gets the items. |
protected java.lang.String[] |
getItems(int limit)
|
java.lang.String |
getItemText(int index)
Gets an item at an index. |
ProxyTestObject[] |
getMappableChildren()
Uses getChildren to implement. |
java.util.Hashtable |
getProperties()
Returns a complete set of properties for the associated test object. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property. |
java.lang.String |
getRole()
Returns TestObjectRole.ROLE_COMBO_BOX. |
java.awt.Rectangle |
getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
Returns the rectangle that contains the component being evaluated relative to the top left corner of the screen. |
int |
getSelectedIndex()
Returns the index of the selected item in the associated ComboBox control. |
protected com.rational.test.ft.script.Subitem |
getSubitem(int index)
Returns the Subitem at the specified index. |
java.lang.Object |
getSubitem(com.rational.test.ft.script.Subitem subitem)
Returns an object that represents the specified subitem in the associated test object. |
com.rational.test.ft.vp.ITestData |
getTestData(java.lang.String testDataType)
This method constructs the specified verification data object. |
java.util.Hashtable |
getTestDataTypes()
Returns a hashtable of data type descriptions of the verification point data available with the associated object in the SUT. |
java.lang.String |
getTestObjectClassName()
Return the GuiSubitemTestObject classname. |
java.lang.String |
getText()
Gets an item at an index. |
int |
getTextHeight()
Returns the height of the text area |
protected boolean |
isDropDown()
|
protected boolean |
isReadOnly()
|
protected boolean |
isSimple()
|
boolean |
needMethodSpecForPoint()
Returns true if getMethodSpecForPoint should return a coordinate based action for drags onto the popup. |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event. |
protected void |
select(int index)
Selects an item. |
void |
select(java.lang.String text)
|
void |
setState(com.rational.test.ft.script.Action action)
This method performs a specific action. |
void |
setState(com.rational.test.ft.script.Action action, com.rational.test.ft.script.Subitem item)
This method performs a specific action against the subitem at a specified index. |
void |
setState(com.rational.test.ft.script.Action action, com.rational.test.ft.script.Subitem start, com.rational.test.ft.script.Subitem end)
This method performs a specific action against the subitem range defined by the specified indices. |
void |
setText(java.lang.String text)
|
com.rational.test.ft.vp.ITestData |
updateTestData(java.lang.String testDataType, com.rational.test.ft.vp.ITestData testData)
This method updates the supplied test data object and returns it. |
| Methods inherited from class com.rational.test.ft.domain.java.swt.SwtGraphicalSubitemProxy |
|---|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getScreenPoint, getScreenPoint, hover, hover, hover, hover, mouseMove, mouseMove, mouseMove, mouseMove, nClick, nClickDrag, nClickDrag, nClickDragToScreenPoint, nClickDragToScreenPoint |
| Methods inherited from class com.rational.test.ft.domain.java.JavaGuiProxy |
|---|
activateTopWindow, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getChildAtPoint, getClippedRect, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, isDrag, isOpaque, isPointInObject, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMapped |
| Methods inherited from class com.rational.test.ft.domain.java.JavaProxy |
|---|
addMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getIndexer, getIndexers, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDomain, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setProperty |
| Methods inherited from class com.rational.test.ft.sys.RegisteredObject |
|---|
addProxyReference, dereference, getObject, getRegisteredId, getTransactionId, isReferenced, isReleaseRequired, register, registerTransiently, release, toString, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComboProxy(java.lang.Object theObjectInTheSUT)
| Method Detail |
|---|
public java.lang.String getTestObjectClassName()
getTestObjectClassName in interface IProxyBasegetTestObjectClassName in class SwtGraphicalSubitemProxypublic java.lang.String getRole()
TestObjectRole.ROLE_COMBO_BOX.
getRole in class ControlProxypublic java.lang.Object getSubitem(com.rational.test.ft.script.Subitem subitem)
SubitemNotFoundException
will be thrown if the specified subitem is invalid relative to the associated test object. null may be returned if the subitem does not have an object association that can be returned.
getSubitem in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetSubitem in class SwtGraphicalSubitemProxysubitem - The subitem to fetch an object for.
public ProxyTestObject[] getMappableChildren()
JavaProxygetChildren to implement.
getMappableChildren in class JavaProxypublic ProxyTestObject[] getChildren()
JavaProxygetChildren to implement.
getChildren in class JavaProxypublic java.util.Hashtable getProperties()
ProxyTestObject This method does not return properties whose values are references to objects. The method ProxyTestObject.getNonValueProperties() returns information about such properties.
getProperties in class JavaProxyProxyTestObject.getProperty(String),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getStandardProperties(),
ProxyTestObject.getNonValueProperties()public java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class ControlProxypropertyName - The name of the property to fetch.
ProxyTestObject.getProperties(),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getRecognitionProperties(),
ProxyTestObject.addRecognitionProperty(String,Object,int)public java.lang.String getText()
index - the index of the itempublic int getItemHeight()
public int getTextHeight()
public java.lang.String[] getItems()
protected java.lang.String[] getItems(int limit)
public java.lang.String getItemText(int index)
getItemText in interface IComboBoxindex - the index of the item public int getItemCount()
getItemCount in interface IComboBoxpublic boolean needMethodSpecForPoint()
true if getMethodSpecForPoint should return a coordinate based action for drags onto the popup.
needMethodSpecForPoint in interface IComboBoxprotected com.rational.test.ft.script.Subitem getSubitem(int index)
index - the specified index.
protected int getItemIndex(java.lang.String item)
item - a String protected int getItemIndex(com.rational.test.ft.script.Text item)
item - a Text protected int getItemIndex(com.rational.test.ft.script.Subitem item)
item - a Subitem public void select(java.lang.String text)
public void setText(java.lang.String text)
protected void select(int index)
protected void extendSelect(int index)
item - The index of the item to select.public int getSelectedIndex()
IComboBox
getSelectedIndex in interface IComboBoxpublic void setState(com.rational.test.ft.script.Action action, com.rational.test.ft.script.Subitem item)
item - The item to act upon.action - The action that should be performed.public void setState(com.rational.test.ft.script.Action action)
action - The action that should be performed.public com.rational.test.ft.sys.MethodSpecification getDataDrivableCommand()
null value is returned.
getDataDrivableCommand in interface IDataDrivengetDataDrivableCommand in class ProxyTestObject#getDataDrivableCommands()public void setState(com.rational.test.ft.script.Action action, com.rational.test.ft.script.Subitem start, com.rational.test.ft.script.Subitem end)
start - The first item to act upon.end - The last item to act upon.action - The action that should be performed.public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxyaction - The event cache and other mouse state information
for this mouse action.public java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetScreenRectangle in class SwtGraphicalSubitemProxyprotected boolean isSimple()
protected boolean isDropDown()
protected boolean isReadOnly()
protected java.awt.Rectangle getClickActionRect()
public void click()
click in interface com.rational.test.ft.object.interfaces.IGraphicalclick in class JavaGuiProxypublic void clickForSetText()
public void clickForComboBox()
public java.util.Hashtable getTestDataTypes()
getTestDataTypes in class JavaProxygetTestData(String),
ITestDatapublic com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
getTestDataTypes.
getTestData in class ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.
getTestDataTypes(),
ITestDatapublic com.rational.test.ft.vp.ITestData updateTestData(java.lang.String testDataType, com.rational.test.ft.vp.ITestData testData)
getTestDataTypes.
The testData is a previously supplied ITestData
object that needs to be updated to reflect the current state of the associated test object.
updateTestData in class ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.testData - The test data base object that requires
updating.
getTestDataTypes(),
ITestData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||