Q7

ArrayIndexOutOfBoundsException при глубокой вложенности getItems().TreeItem

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.3.10
  • Fix Version/s: 1.3.12
  • Component/s: Runtime
  • Labels:
  • Test Mode:
    Manual

Description

Ticket link: http://support.xored.com/helpdesk/tickets/869

Try to reproduce.

Activity

Hide
Ulyana Skorokhodova added a comment - 11/Apr/14 12:57 PM

Reproduced.
Run the attached Q7 test to reproduce (Use Q7 as AUT).
During the replay only the first level of folders is expanded.

Possible workaround:

get-view "Q7 Explorer" | get-tree | expand-all | get-item "efef/F1" 
    | get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItems().TreeItem[0].getItems().TreeItem[0].getItems().TreeItem[0].getItems().TreeItem[0].getText()" 
    | equals F1 | verify-true
Show
Ulyana Skorokhodova added a comment - 11/Apr/14 12:57 PM Reproduced. Run the attached Q7 test to reproduce (Use Q7 as AUT). During the replay only the first level of folders is expanded. Possible workaround:
get-view "Q7 Explorer" | get-tree | expand-all | get-item "efef/F1" 
    | get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItems().TreeItem[0].getItems().TreeItem[0].getItems().TreeItem[0].getItems().TreeItem[0].getText()" 
    | equals F1 | verify-true
Hide
Vasili Gulevich added a comment - 26/May/14 4:36 PM

get-item already does expansion of all needed children:

Proper use of get-item
get-view "Q7 Explorer" | get-tree | get-item "efef/F1/.*/.*/.*/.*/.*/.*" 
    | get-property "getText()" | equals F1 | verify-true
Show
Vasili Gulevich added a comment - 26/May/14 4:36 PM get-item already does expansion of all needed children:
Proper use of get-item
get-view "Q7 Explorer" | get-tree | get-item "efef/F1/.*/.*/.*/.*/.*/.*" 
    | get-property "getText()" | equals F1 | verify-true

People

Vote (0)
Watch (0)

Dates

  • Created:
    09/Apr/14 8:31 PM
    Updated:
    26/May/14 4:37 PM
    Resolved:
    26/May/14 4:37 PM