Q7

View expansion recording is inconsistent

Details

  • Type: Bug Bug
  • Status: Reopened Reopened
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.2.3, 1.2.17
  • Fix Version/s: 1.2.x
  • Component/s: Recording, Runtime
  • Labels:
  • Test Mode:
    Manual

Description

  1. Start recording
  2. Double-click any view title so that it is expanded
  3. Click 'restore' button
  4. You'll get the script like this, which obviously cannot be replayed, as we don't record view maximization by double click:
      get-button Restore | click
    

    so we should record something like this:

       get-view Properties | maximize
    

Also note that clicking on a view maximize button at toolbar is recorded, but in unreadable and unpredictable way:

with [get-tab-folder -index 3] {
    maximize
    restore
}
with [get-tab-folder -index 3] {
    maximize
    restore
}

There are two problems:

  • No way to understand which view is being expanded
  • Indices are transient even in scope of single test execution -┬áthe snippet above corresponds to expanding two different views (though it has been replayed correctly).

Activity

Hide
Ulyana Skorokhodova added a comment - 05/Mar/13 1:14 PM

The problem still exists.

Steps to reproduce:

1. Double-click Problems view (to maximize it);
2. Click "restore" button;
3. Double-click Problems view again.

The following code will be recorded:

get-view Problems | click
get-tab-folder -index 3 | double-click
get-view "Package Explorer" | restore
get-tab-folder -index 3 | double-click

which fails on 4th line during replay with the following error:

Execution failed on line 4 at column 1 (JavaProjectWithClass.test:4)
Caused by:
The TabFolder "[]" could not be found.

Show
Ulyana Skorokhodova added a comment - 05/Mar/13 1:14 PM The problem still exists. Steps to reproduce: 1. Double-click Problems view (to maximize it); 2. Click "restore" button; 3. Double-click Problems view again. The following code will be recorded:
get-view Problems | click
get-tab-folder -index 3 | double-click
get-view "Package Explorer" | restore
get-tab-folder -index 3 | double-click
which fails on 4th line during replay with the following error: Execution failed on line 4 at column 1 (JavaProjectWithClass.test:4) Caused by: The TabFolder "[]" could not be found.

People

  • Assignee:
    sergey
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    06/Aug/12 5:36 PM
    Updated:
    28/Jun/13 6:51 PM