4.2.13 (Oct 2007)

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

Id

Description

8715

onTextChange event does not occur by Undo/Redo

8845

Test Script API : fireDoubleClick() only fires click

8846

TestScript API : calling fireKey("Ctrl+A") on a TextFieldScriptObject not working properly

8847

TestScript API : Calling fireKeys on TextAreaScriptObject does not work

8848

TestScript API : Calling LabelScriptObject base class methods ( e.g. getText() ) generate ClassCastException for TextAreaScriptObject and TextViewScriptObject

8707

Unable to expand tree in locked column when scrollbar is not in initial position

8639

Input by IME breaks the value of the text attribute of the input field with maxLength

8369

Null Pointer occurs after an element with "selectedStyle" is added to UI Document

8350

The cut of text (CTRL x) does not trigger an onTextChange event

8077

712-4667088 - Context menu does not close properly when clicking outside the context menu

8032

quickEdit table with combo box as editor: value selected in combo box does not update cell

8026

Null Pointer Exception by exchange of a row position

7974

Transparent background of tree lines displays scrolling cells behind locked columns

7004

712-3701912 - Scrollbars on drop down lists do not show trailing characters

6348

712-2873188 - Test API feature enhancement request from Sungard: add scrolling for TableScriptObject and other scrollable components

6349

712-2873188 - TestAPI documentation does not install with the product (4.2.x)

6355

7712-2873188 - Test API feature enhancement request from Sungard: add Expand/Collapse for TreeTableScriptObject

6356

712-2873188 - Test API feature enhancement request from Sungard: add a way to get sortOrder data from a ColumnScriptObject

6357

712-2873188 - Test API feature enhancement request from Sungard: add isEnabled to all objects

6358

712-2873188 - Test API feature enhancement request from Sungard: add isVisible method to all components

8841

712-2873188 - Test API feature enhancement request from Sungard: add method to test if object exits

8842

712-2873188 - Test API feature enhancement request from Sungard: add getMaxLength() to textArea

8843

712-2873188 - Test API feature enhancement request from Sungard: add a clear method for textField and textArea script objects

8844

712-2873188 - Test API feature enhancement request from Sungard: add ability to do multi selection in listbox

8869

712-2873188 - Test API bug findObjectById() fails to find TextArea or TextView

8870

712-2873188 - Test API bug findObjectById fails to find passwordField object