Q7

Q7 can't replay table action in iTest editor correctly.

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.3.12
  • Fix Version/s: 1.3.x
  • Component/s: Recording, Runtime
  • Labels:
    None
  • Environment:
    iTest as AUT, Q7 1.3.12
  • Test Mode:
    Manual

Description

Steps to reproduce:

1. Import the attached Project into iTest.
2. Open any iTest Test Case;
3. Select any step in procedure (by clicking on the right side of the first column)
4. Try to type '111' in Description column.

Bug#1: Q7 records the code which cannot be correctly replayed:

with [get-editor "new_testcase2.fftc" | get-section Steps | get-tree] {
    get-item procedure | expand
    get-cell 2 0 | mouse down -count 1
    activate-cell-edit
    get-editbox | click-text 1 13
    apply-cell-edit -deactivate
}

Bug #2: Q7 records 111111 instead of 111;
Bug #3: Q7 records get-control Any;
Bug #4: Q7 can't replay the recorded script:

with [get-editor "new_testcase2.fftc" | get-section Steps | get-tree] {
    get-item procedure | expand
    get-cell 2 2 | mouse down -count 1
    activate-cell-edit -column 2
    get-editbox | click-text
    get-control Any | type-text 111111
    apply-cell-edit
    select "procedure/getInnerText" | deactivate-cell-edit
}

Workaround - replace:

get-editbox | click-text
get-control Any | type-text 111111

with:

get-editbox | set-text 111

Activity

Hide
Ulyana Skorokhodova added a comment - 26/Jun/14 9:22 AM

UPD: this code is recorded if you click on the middle-right part of a cell (first column).
If you click on the left part of the cell, then 'get-item | select' is recorded and can be replayed successfully.

Show
Ulyana Skorokhodova added a comment - 26/Jun/14 9:22 AM UPD: this code is recorded if you click on the middle-right part of a cell (first column). If you click on the left part of the cell, then 'get-item | select' is recorded and can be replayed successfully.
Hide
Vasili Gulevich added a comment - 26/Jun/14 8:13 PM - edited

FanfareCombobox duplicates events of its child Text (it listens textbox events and does notifyListeners(SWT.KeyDown, keyEvent)). They are recorded twice and hell comes down to the Earth.

First a keydown event is handled by
org.eclipse.rcptt.tesla.recording.core.swt.SWTEventRecorder.processKeyDown()
It is dropped from org.eclipse.rcptt.tesla.recording.core.swt.SWTEventRecorder.lastEvents

Then a modify event is handled by
org.eclipse.rcptt.tesla.recording.core.swt.SWTEventRecorder.processModify()
It is not recognized as set-text as keydown event is already dropped.

Proposed fix: a boolean flag in RecordingAspect for Widget.sendEvent preventing recursive recording of events. (Special care must be taken for modal context).

Show
Vasili Gulevich added a comment - 26/Jun/14 8:13 PM - edited FanfareCombobox duplicates events of its child Text (it listens textbox events and does notifyListeners(SWT.KeyDown, keyEvent)). They are recorded twice and hell comes down to the Earth. First a keydown event is handled by org.eclipse.rcptt.tesla.recording.core.swt.SWTEventRecorder.processKeyDown() It is dropped from org.eclipse.rcptt.tesla.recording.core.swt.SWTEventRecorder.lastEvents Then a modify event is handled by org.eclipse.rcptt.tesla.recording.core.swt.SWTEventRecorder.processModify() It is not recognized as set-text as keydown event is already dropped. Proposed fix: a boolean flag in RecordingAspect for Widget.sendEvent preventing recursive recording of events. (Special care must be taken for modal context).

People

Vote (0)
Watch (0)

Dates

  • Created:
    24/Jun/14 5:23 PM
    Updated:
    12/Mar/15 6:39 PM