Java Improvements
New Test Script API method -- objectWithTestidExists
This method returns true or false depending on whether an object with the specified testid exists.
New Test Script API method -- findObjectByTestid
Method returns the test script object for the Nexaweb UI component with the specified testid. This method returns null if no object with the specified id is found, or testid generation is set to false in nexaweb-client.xml.
Trap to Avoid
By design listItem, row and cell elements don't have testid values. These two methods don't work directly for these elements. You may use the two new methods for the ancestor element (listBox for listItem; table for row and cell). For instance, findObjectByTestid can't be used to define the first listItem in a listBox. You can define a listBox test object with the findObjectByTestid method, and then use the findObjects method (with the listBox test object and "/listItem[1]" as parameters) to get the first listItem object.
Memory Leak Resolved
The memory leak occurred in data intensive UI where elements were created and then removed in the same <xm:modifications> block.
Iterator Improvement
Now if an iterator fires during UI processing and the data is available, the iterator will iterate.
For backwards compatibility purposes, the user parameter data-framework-iterator-asynchronous-always may be set to true in nexaweb-client.xml to indicate to the data framework plugin to revert to the old behavior.
To revert to the old behavior:
In Studio:
1. Double click nexaweb-client.xml
2. In “Application Configuration Editor” under “User Defined Parameters”, click “Add…”
3. Add the following parameter to revert to the old behavior:
Name: data-framework-iterator-asynchronous-always
Value: true
Defects Resolved (Java)
9881 | gridPane with visible="false" throws exception |
9880 | Add objectWithTestidExists method |
9878 | Add findObjectByTestid method |
9844 | 712-6173092 - Make data binding / iterators synchronous |
9837 | 712-6047524 - TestAPI - Cannot use findObject and findObjectById for tables and treeTables |
9834 | Memory Leak when adding and removing menus/menuItems with an accessKey or shortcut |
9828 | Column swapping is not allowed after swapping columns |
9386 | 712-6011972 - The column of the table is sorted in the reverse order of the "sort" attribute. |