Q7

Action cannot be replayed if it is inside of statement block

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.2.2
  • Fix Version/s: 1.2.x
  • Component/s: ECL, Runtime
  • Labels:
    None
  • Test Mode:
    Q7
  • Q7 test:
    MoveTestsClosed

Description

with [get-tab-folder] {
    get-property pages -index 0 | is-equal "default.wvd" | verify
    get-property pages -index 1 | is-equal "inside-moved.wvd" | verify
    get-property pages -index 2 | is-equal "outside-class-diagram.wvd" | verify
    get-property tabCount | is-equal 3 | verify
    get-menu "Close All" | click
    get-property tabCount | is-equal 0 | verify
}

— this script fails at the last line

with [get-tab-folder] {
    get-property pages -index 0 | is-equal "default.wvd" | verify
    get-property pages -index 1 | is-equal "inside-moved.wvd" | verify
    get-property pages -index 2 | is-equal "outside-class-diagram.wvd" | verify
    get-property tabCount | is-equal 3 | verify
    get-menu "Close All" | click
   //get-property tabCount | is-equal 0 | verify
}
get-tab-folder | get-property tabCount | is-equal 0 | verify

— this script works ok

Activity

Hide
lena.platova added a comment - 18/Jun/12 2:42 PM

Error message: Failed to locate shell for:The control CTabFolder is disposed.

Show
lena.platova added a comment - 18/Jun/12 2:42 PM Error message: Failed to locate shell for:The control CTabFolder is disposed.
Hide
komaz added a comment - 25/Apr/13 4:17 PM

Issue is still reproducible. No tigerstripe AUT required.
Close all editors before running this snippet:

//open any file
get-view "Q7 Explorer" | get-tree | select "MyProject/foo.txt" | double-click
with [get-tab-folder] {
   get-property tabCount | equals 1 | verify-true
   get-menu "Close All" | click
   get-property tabCount | equals 0 | verify-true
}

Moving a last assertion outside of a with block solves an issue

Show
komaz added a comment - 25/Apr/13 4:17 PM Issue is still reproducible. No tigerstripe AUT required. Close all editors before running this snippet:
//open any file
get-view "Q7 Explorer" | get-tree | select "MyProject/foo.txt" | double-click
with [get-tab-folder] {
   get-property tabCount | equals 1 | verify-true
   get-menu "Close All" | click
   get-property tabCount | equals 0 | verify-true
}
Moving a last assertion outside of a with block solves an issue

People

  • Assignee:
    komaz
    Reporter:
    lena.platova
Vote (0)
Watch (0)

Dates

  • Created:
    18/Jun/12 2:29 PM
    Updated:
    25/Apr/13 4:17 PM