Issue Details (XML | Word | Printable)

Key: UBA-7534
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Janak Mulani
Reporter: Janak Mulani
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ULCBase

ULCComboBoxOperator.selectItem takes too long or even times out.

Created: 21/Aug/08 05:19 AM   Updated: 02/Apr/09 02:26 PM
Component/s: testframework
Affects Version/s: None
Fix Version/s: UltraLightClient '08 Update 2

Issue Links:
Reference
 


 Description  « Hide
ULCComboBoxOperator.selectItem takes too long or even times out. This is not always reproducible.

As a workaround one can extend ULCComboBoxOperator to add setSelectedItem mmethod:

public class MyULCComboBoxOperator extends ULCComboBoxOperator {
        public MyULCComboBoxOperator(AWTContainerOperator cont) {
            super(cont);
        }

        public void setSelectedIndex(final int index) {
            TestContext.getInstance().runVoidCommand(new TestCommand() {
                public void proceed() {
                    getJemmyJComboBoxOperator().setSelectedIndex(index);
                }
            });
        }
        
        public void setSelectedItem(final String item) {
            TestContext.getInstance().runVoidCommand(new TestCommand() {
                public void proceed() {
                    getJemmyJComboBoxOperator().setSelectedItem(item);
                }
            });
        }
    }


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Janak Mulani added a comment - 03/Feb/09 06:36 AM - edited
The test framework now uses the faster JScrollBarAPIDriver instead of JScrollBarDriver.
In addition changed the default timeout for scrolling operations (JScrollBarOperator.WholeScrollTimeout) from 10s to 60s.

If you need even larger scrolling operation timeouts you can set JScrollBarOperator.WholeScrollTimeout to a custom value in AbstractTestCase.setUp() after invoking super.setUp().