4.2.13 (Oct 2007)

Enhancements to onTextChange
onTextChange has been expanded to consume two new text events. First, onTextChange can now consume text changes caused by Undo and Redo. Second, CTRL-X (cut) is now a consumable event by onTextChange.

Tree table enhancement
It is now possible to expand a tree node in a locked column with the tree table's scroll bar in an arbitrary position. Prior to this release, it was only possible to open a tree node when the tree table's scroll bar was in it's initial position.

Other important bug fixes
First, context menu now closes correctly after clicking an item from it. Second, all characters in drop down lists with scrollbars are now shown.

TestScript API Enhancments
The following enhancements and bug fixes have been made to the TestScript API for 4.2.13.

Accessing Scrollbars of Tables
Support for Scrolling tables was added to the TestScript API. The following methods were added to the TableScriptObject.

public ScrollBarScriptObject getHorizontalScrollBar()

public ScrollBarScriptObject getVerticalScrollBar()           
 

To scroll a table, first get the vertical or horizontal scroll bar, and then use the methods of the returned ScrollBarScriptObject.  Such as, using increment() or decrement() to simulate using the scroll buttons, or using pageUp() or pageDown() to simulate using the track bar. 

Because these methods were added to the TableScriptObject, they are also available for use on the TreeScriptObject, and TreeTableScriptObject.

Expand and Collapse Rows of a TreeTable
Support for expanding and collapsing top level rows of a treeTable was added to the TestScriptAPI.   The following methods were added to the TreeTableScriptObject

public void expandRowAt( int rowIndex )
public void collapseRowAt( int rowIndex ) These methods are convenience methods, and only work on top level rows of the treeTable. To expand and collapse sub-rows of top level rows, use the collapse() and expand() of the RowScriptObject.
 
MultiSelection in the ListBox
Multi-selection support for the listBox was added to the TestScript API. The following methods were added to the ListBoxScriptObject.

To add list items to the selection:
<!--[if !supportEmptyParas]--> <!--[endif]-->
public void addListItemAtIndexToSelection( int itemIndex )
public void addListItemToSelection( Object item )
<!--[if !supportEmptyParas]--> <!--[endif]-->
To remove list items from the selection:

public void removeListItemAtIndexFromSelection( int itemIndex )
public void removeListItemFromSelection( Object item )

To test if a list item is selected:
<!--[if !supportEmptyParas]--> <!--[endif]-->
public boolean isListItemSelectedAt( int itemIndex )
public boolean isListItemSelected( Object item )
<!--[if !supportEmptyParas]--> <!--[endif]-->
To get all the selected list items:
<!--[if !supportEmptyParas]--> <!--[endif]-->
public Vector getSelectedListItems()

Ability to check if component exists.
Support of checking if an object exists was added to the ApplicationScriptObject.

The following methods were added:
<!--[if !supportEmptyParas]--> <!--[endif]-->
To check for an object by id:
<!--[if !supportEmptyParas]--> <!--[endif]-->
public boolean objectWithIdExists( String id )
<!--[if !supportEmptyParas]--> <!--[endif]-->
To check for an object via XPath:
<!--[if !supportEmptyParas]--> <!--[endif]-->
public boolean objectExists( String expression )
public boolean objectExists( Object baseObject,String expression )

Ability to clear textField and textArea
A clear() method was added to both the TextFieldScriptObject and TextAreaScriptObject.
The clear() method is simply a convenience method for the following steps:
1) click on the component to gain focus
2) fire a Ctrl+A to select all the text

3) fire a Delete to delete the selected text.
<!--[if !supportEmptyParas]-->

Ability to select all text for textField and textArea

To select all text, first call fireClick() method, and then call fireKey("Ctrl+A") or fireKey("Ctrl-A")

Get sortOrder of Column.

The sort order property of a column can be retrieved by using

the getSortOrder() method of the ColumnScriptObject.   The method

returns the either "unsorted", "ascending" or descending" as a value.

<!--[if !supportEmptyParas]--><!--[endif]--> <!--[endif]-->

Ability to check if component is enabled.

The method isEnabled() was added to the PanelScriptObject for testing whether a component is enabled or disabled.

Ability to check if component is visible.
The method isVisible() was added to the PanelScriptObject for testing whether a component is visible or invisible.

Ability to get maxLength value of TextArea
The method getMaxLength() was added to the TextAreaScriptObject.

Defects Resolved

IdDescription
8715onTextChange event does not occur by Undo/Redo
8845Test Script API : fireDoubleClick() only fires click
8846TestScript API : calling fireKey("Ctrl+A") on a TextFieldScriptObject not working properly
8847TestScript API : Calling fireKeys on TextAreaScriptObject does not work
8848TestScript API : Calling LabelScriptObject base class methods ( e.g. getText() ) generate ClassCastException for TextAreaScriptObject and TextViewScriptObject
8707Unable to expand tree in locked column when scrollbar is not in initial position
8639Input by IME breaks the value of the text attribute of the input field with maxLength
8369Null Pointer occurs after an element with "selectedStyle" is added to UI Document
8350The cut of text (CTRL x) does not trigger an onTextChange event
8077712-4667088 - Context menu does not close properly when clicking outside the context menu
8032quickEdit table with combo box as editor: value selected in combo box does not update cell
8026Null Pointer Exception by exchange of a row position
7974Transparent background of tree lines displays scrolling cells behind locked columns
7004712-3701912 - Scrollbars on drop down lists do not show trailing characters
6348712-2873188 - Test API feature enhancement request from Sungard: add scrolling for TableScriptObject and other scrollable components
6349712-2873188 - TestAPI documentation does not install with the product (4.2.x)
63557712-2873188 - Test API feature enhancement request from Sungard: add Expand/Collapse for TreeTableScriptObject
6356712-2873188 - Test API feature enhancement request from Sungard: add a way to get sortOrder data from a ColumnScriptObject
6357712-2873188 - Test API feature enhancement request from Sungard: add isEnabled to all objects
6358712-2873188 - Test API feature enhancement request from Sungard: add isVisible method to all components
8841712-2873188 - Test API feature enhancement request from Sungard: add method to test if object exits
8842712-2873188 - Test API feature enhancement request from Sungard: add getMaxLength() to textArea
8843712-2873188 - Test API feature enhancement request from Sungard: add a clear method for textField and textArea script objects
8844712-2873188 - Test API feature enhancement request from Sungard: add ability to do multi selection in listbox
8869712-2873188 - Test API bug findObjectById() fails to find TextArea or TextView
8870712-2873188 - Test API bug findObjectById fails to find passwordField object