Q7

Q7 fails to get-combo if I set value with "Enter" key.

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.2.18
  • Fix Version/s: 1.2.x
  • Component/s: Recording, Runtime
  • Labels:
    None
  • Test Mode:
    Manual

Description

Use ComboBoxCellEditor Mockup(/com.xored.q7.quality.mockups.swt/src/org/eclipse/jface/viewer/ComboboxCellEditorMockup.java).

Start recording, click on Month column to activate cell-editor.
Navigate with UP/DOWN keys inside combo and press "ENTER".

Bug1: Up/Down events are recorded twice:

Try to replay.

Bug2: test fails with the following error:

Execution failed on line 21 at column 9 (TableViewer_ComboBoxCellEditor_EditWithKey.test:21)
Caused by:
The Combo "[]" could not be found.

Q7 test:

with [get-view "Q7 Quality Mockups"] {
    get-tree | select "jface/tableViewer/ComboboxCellEditor"
    with [get-group ComboboxCellEditor | get-table] {
        select 1 | activate-cell-edit -column 1
        with [get-combo] {
            key-type Down -times 2
            select February
            key-type Down -times 2
            select March
            key-type Down -times 2
            select April
            key-type Down -times 2
            select May
            key-type Up -times 2
            select April
            key-type Up -times 2
            select March
            key-type Enter
        }
        apply-cell-edit
        get-combo | key-type Enter
        key-type Enter
    }
}
with [get-view "Q7 Quality Mockups" | get-group ComboboxCellEditor | get-table] {
    get-item 3 | get-property columns -index 0 | equals 3 | verify-true
    get-item 3 | get-property columns -index 1 | equals March | verify-true
}

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    10/Apr/13 5:08 PM
    Updated:
    10/Apr/13 5:08 PM