Q7

When a tree item contains slash, searching an item by column does not work

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.10
  • Fix Version/s: 1.3.13
  • Component/s: Runtime
  • Labels:
  • Test Mode:
    Q7
  • Q7 test:
    tests/coverage/swt/tree/Tree With Slashes Test.test

Description

Ticket 657

  1. Use standard Tasks view
  2. Create a task named "foo/bar"
  3. Record task name assertion
      get-view Tasks | get-tree | get-item "foo\\/bar" -column Description | get-property "columns[2]" | equals "foo/bar" | assert-true
      
  4. Replay fails with error:
      The item "[foo, bar#Description#]" could not be found 
        at get-item
      
  5. Surprisingly, selection works correctly:
      get-view Tasks | get-tree | select "foo\\/bar" -column Description
      

Activity

Hide
komaz added a comment - 23/Dec/13 7:06 PM

Another issue:
Given a tree like this:

Name Resource Pin
UART001/0    
  UART Transmit 1.1
  UART Receive 1.2

This code fails:

get-items | foreach { get-property "columns[1]" }

With a message:

The Item "[UART001/0%1%]" could not be found.
	at get-property (/clean/strange tree.test:14)
Show
komaz added a comment - 23/Dec/13 7:06 PM Another issue: Given a tree like this:
Name Resource Pin
UART001/0    
  UART Transmit 1.1
  UART Receive 1.2
This code fails:
get-items | foreach { get-property "columns[1]" }
With a message:
The Item "[UART001/0%1%]" could not be found.
	at get-property (/clean/strange tree.test:14)
Hide
Ulyana Skorokhodova added a comment - 23/Dec/13 7:25 PM
Show
Ulyana Skorokhodova added a comment - 23/Dec/13 7:25 PM Ticket link: http://xored.freshdesk.com/helpdesk/tickets/657
Ulyana Skorokhodova made changes - 23/Dec/13 7:25 PM
Field Original Value New Value
Labels customer
Hide
vasily.loginov added a comment - 11/Jun/14 3:04 PM

Path to item becomes broken in SelectorService.service() method (SelectorService.java:185)

Show
vasily.loginov added a comment - 11/Jun/14 3:04 PM Path to item becomes broken in SelectorService.service() method (SelectorService.java:185)
Hide
Vasili Gulevich added a comment - 23/Jun/14 11:27 AM
Show
Vasili Gulevich added a comment - 23/Jun/14 11:27 AM Fixed in http://build.xored.com/browse/Q7-RCPTT-76
Vasili Gulevich made changes - 23/Jun/14 11:27 AM
Assignee Vasily Loginov [ vasily.loginov ] Ulyana Skorokhodova [ ulik ]
Vasili Gulevich made changes - 24/Jun/14 10:51 PM
Description # Use standard Tasks view
# Create a task named "foo/bar"
# Record task name assertion
  {noformat}
  get-view Tasks | get-tree | get-item "foo\\/bar" -column Description | get-property "columns[2]" | equals "foo/bar" | assert-true
  {noformat}
# Replay fails with error:
  {noformat}
  The item "[foo, bar#Description#]" could not be found
    at get-item
  {noformat}
# Surprisingly, selection works correctly:
  {noformat}
  get-view Tasks | get-tree | select "foo\\/bar" -column Description
  {noformat}
[Ticket 657|http://xored.freshdesk.com/helpdesk/tickets/657]


# Use standard Tasks view
# Create a task named "foo/bar"
# Record task name assertion
  {noformat}
  get-view Tasks | get-tree | get-item "foo\\/bar" -column Description | get-property "columns[2]" | equals "foo/bar" | assert-true
  {noformat}
# Replay fails with error:
  {noformat}
  The item "[foo, bar#Description#]" could not be found
    at get-item
  {noformat}
# Surprisingly, selection works correctly:
  {noformat}
  get-view Tasks | get-tree | select "foo\\/bar" -column Description
  {noformat}
Hide
Ulyana Skorokhodova added a comment - 24/Jun/14 11:21 PM

This case doesn't work: get-view "Q7 Quality Mockups" | get-group TreeWithSlashes | get-tree | get-item "parent1/child1value\\/with
/slash" -column "Value column"

Show
Ulyana Skorokhodova added a comment - 24/Jun/14 11:21 PM This case doesn't work: get-view "Q7 Quality Mockups" | get-group TreeWithSlashes | get-tree | get-item "parent1/child1value\\/with
/slash" -column "Value column"
Ulyana Skorokhodova made changes - 24/Jun/14 11:21 PM
Assignee Ulyana Skorokhodova [ ulik ] Vasili Gulevich [ vasili.gulevich ]
Vasili Gulevich made changes - 24/Jun/14 11:25 PM
Assignee Vasili Gulevich [ vasili.gulevich ] Vasily Loginov [ vasily.loginov ]
Hide
Vasili Gulevich added a comment - 24/Jun/14 11:49 PM
Item1    parent1
 |
 \Item2  child1value/with/slash
Show
Vasili Gulevich added a comment - 24/Jun/14 11:49 PM
Item1    parent1
 |
 \Item2  child1value/with/slash
Hide
Ulyana Skorokhodova added a comment - 25/Jun/14 12:02 AM - edited

This script works successfully:

get-item "/child1value\\/with\\/slash" -column "Value column"

Q7 test is modified to take this situation into account.

Show
Ulyana Skorokhodova added a comment - 25/Jun/14 12:02 AM - edited This script works successfully:
get-item "/child1value\\/with\\/slash" -column "Value column"
Q7 test is modified to take this situation into account.
Ulyana Skorokhodova made changes - 25/Jun/14 12:02 AM
Q7 test tests/coverage/swt/tree/Tree With Slashes Test.test
Resolution Fixed [ 1 ]
Test Mode Manual Q7
Status Open [ 1 ] Resolved [ 5 ]
Transition Time In Source Status Execution Times Last Executer Last Execution Date
Open Open Resolved Resolved
187d 7h 20m 1 Ulyana Skorokhodova 25/Jun/14 12:02 AM

People

  • Assignee:
    vasily.loginov
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    19/Dec/13 3:42 PM
    Updated:
    25/Jun/14 2:19 PM
    Resolved:
    25/Jun/14 12:02 AM