Q7

Q7 doesn't record clicks into a field if it is empty.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.3.9
  • Fix Version/s: 1.3.11
  • Component/s: Recording
  • Labels:
    None
  • Test Mode:
    Q7
  • Q7 test:
    CopyPasteWithMenuIntoEmptyField

Description

Steps to reproduce:

Use Q7 as AUT.
Open a test case editor with empty Tags field. Start recording.

  1. Select text in Name field;
  2. Choose Edit/Copy;
  3. Left click into Tags field;
  4. Right click in Tags field
  5. Choose Edit/Paste.

Bug: no script is recorded for left click into a Tags field.

Activity

Hide
Vasili Gulevich added a comment - 23/Dec/13 2:06 PM - edited

I've managed to record following scriptlet without manual editing:

with [get-editor scenario] {
    with [get-editbox -after [get-label "Name:"]] {
        set-text-offset 4 0
        double-click
        set-text-selection -offset 0 -startLine 0 -endLine 0 -endOffset 8
        get-menu Copy | click
    }
    get-editbox -after [get-label "Tags:"] | get-menu Paste | click //Nothing recorded wrong here
}
get-editor scenario | get-editbox -after [get-label "Tags:"] | get-property text | equals scenario | verify-true

Oh, I get it now - nothing is recorded when you "left click" in a field.

Show
Vasili Gulevich added a comment - 23/Dec/13 2:06 PM - edited I've managed to record following scriptlet without manual editing:
with [get-editor scenario] {
    with [get-editbox -after [get-label "Name:"]] {
        set-text-offset 4 0
        double-click
        set-text-selection -offset 0 -startLine 0 -endLine 0 -endOffset 8
        get-menu Copy | click
    }
    get-editbox -after [get-label "Tags:"] | get-menu Paste | click //Nothing recorded wrong here
}
get-editor scenario | get-editbox -after [get-label "Tags:"] | get-property text | equals scenario | verify-true
Oh, I get it now - nothing is recorded when you "left click" in a field.
Hide
Vasili Gulevich added a comment - 23/Dec/13 2:08 PM

Ulyana, are my edits of description correct?

Show
Vasili Gulevich added a comment - 23/Dec/13 2:08 PM Ulyana, are my edits of description correct?
Hide
Vasili Gulevich added a comment - 23/Dec/13 3:09 PM

com.xored.tesla.recording.core.swt.SWTEventRecorder.recordStyledTextOffset(StyledText) have been recording offset change only if text field was not empty. This check has been there since the very beginning: c1393f3bd84383e330b5927872b051d450cd3bcc.
Removed the check in c7cd8ab853b7f5faf46593246c8df8d000c70f1f.

Show
Vasili Gulevich added a comment - 23/Dec/13 3:09 PM com.xored.tesla.recording.core.swt.SWTEventRecorder.recordStyledTextOffset(StyledText) have been recording offset change only if text field was not empty. This check has been there since the very beginning: c1393f3bd84383e330b5927872b051d450cd3bcc. Removed the check in c7cd8ab853b7f5faf46593246c8df8d000c70f1f.
Hide
Vasili Gulevich added a comment - 23/Dec/13 3:20 PM

Testing in experimental branch.

Show
Vasili Gulevich added a comment - 23/Dec/13 3:20 PM Testing in experimental branch.
Hide
Ulyana Skorokhodova added a comment - 25/Dec/13 9:05 PM

Changing status to Under Testing

Show
Ulyana Skorokhodova added a comment - 25/Dec/13 9:05 PM Changing status to Under Testing

People

Vote (0)
Watch (0)

Dates

  • Created:
    20/Dec/13 11:50 AM
    Updated:
    26/Dec/13 3:45 AM
    Resolved:
    26/Dec/13 3:45 AM