Bug 702254 - [Advanced search]The "Advanced search" is inaccurate when the search options are complex
Summary: [Advanced search]The "Advanced search" is inaccurate when the search options ...
Keywords:
Status: VERIFIED
Alias: None
Product: TCMS
Classification: Other
Component: Application
Version: 3.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Yang Ren
QA Contact: Nobody
URL:
Whiteboard:
Depends On: 702251 709262
Blocks: 593666 704162
TreeView+ depends on / blocked
 
Reported: 2011-05-05 07:30 UTC by Xin Gao
Modified: 2022-03-14 03:24 UTC (History)
6 users (show)

Fixed In Version: 3.6.z
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Xin Gao 2011-05-05 07:30:53 UTC
Description of problem:
The "Advanced search" is inaccurate when the search options are complex.
The situations for this are as follows:
1.Search case and run via type plan's search field.
2.Search plan and run via type case's search field.
3.Search plan and case via type run's search field.

Version-Release number of selected component (if applicable):
3.4

How reproducible:


Steps to Reproduce:
1.Click "Advance search"

2.Input or choose some information on the plan's options.

3.Click "search case/search run"button.
  
Actual results:


Expected results:


Additional info:

Comment 1 Danqing Li 2011-05-05 08:21:40 UTC
please add some screenshot to show the inaccurate data.
Does this bug releated to  the bug #702251 ? the inaccurate data were new data?

Comment 2 Yuguang Wang 2011-05-05 09:48:21 UTC
Yeah, please show more details about how to reproduce, thanks.
(In reply to comment #1)
> please add some screenshot to show the inaccurate data.
> Does this bug releated to  the bug #702251 ? the inaccurate data were new data?

Comment 3 Chaobin Tang 2011-05-05 17:53:40 UTC
Or, please copy the URL in here, with that we are able to reproduce.

Comment 4 Chaobin Tang 2011-05-05 17:54:25 UTC
The URL after you clicked the search button, cause it will include everything you've input.

Comment 5 Xin Gao 2011-05-09 03:16:55 UTC
I tried to reproduce this bug, somehow I couldn't...maybe I used options of new data before. But now I am not quite sure this issue before the bug #702251 being solved. So I can not close this bug now.

Comment 6 Xin Gao 2011-05-10 10:16:52 UTC
version: 3.4 on englab.
Some inaccurate situations have been found about the feature of advanced search. The situations are as follows.

Situation one:
Steps: 
1.Click “Advanced search”.
2.input and type some search options as follows,
  1).Case Product: Red Hat Enterprise Linux 5.
  2).Case Component: samba.
3.click “Search Case”
Result: Some cases (the case procuct is "Red Hat Enterprise Linux 6", and the component product is Red Hat Enterprise Linux 5) they belonging to RHEL 6(the case procuct is "Red Hat Enterprise Linux 6", and the component product is Red Hat Enterprise Linux 5) were included in the cases list.

Situation two:
Steps: 
1.Click “Advanced search”.
2.input and type some search options as follows,
  1).Plan Product: Red Hat Enterprise Linux 5.
  2).Case Product: Fedora.
3.click “Search Plan”
Result: The searched plan whose case product isn't 'Fedora' but is 'Global Desktop".

Situation three:
Steps: 
1.Click “Advanced search”.
2.input and type some search options as follows,
  1).Plan Product:Red Hat Enterprise Linux 5.
  2).Plan Component:samba.
  3).Case Product:Fedora.
3.click “Search Plan”
Result: The search result make me confuse...But not meet the search options.

Comment 7 Danqing Li 2011-05-11 05:33:33 UTC
(In reply to comment #6)
> version: 3.4 on englab.
> Some inaccurate situations have been found about the feature of advanced
> search. The situations are as follows.
> 
> Situation one:
> Steps: 
> 1.Click “Advanced search”.
> 2.input and type some search options as follows,
>   1).Case Product: Red Hat Enterprise Linux 5.
>   2).Case Component: samba.
> 3.click “Search Case”
> Result: Some cases (the case procuct is "Red Hat Enterprise Linux 6", and the
> component product is Red Hat Enterprise Linux 5) they belonging to RHEL 6(the
> case procuct is "Red Hat Enterprise Linux 6", and the component product is Red
> Hat Enterprise Linux 5) were included in the cases list.
> 
> Situation two:
> Steps: 
> 1.Click “Advanced search”.
> 2.input and type some search options as follows,
>   1).Plan Product: Red Hat Enterprise Linux 5.
>   2).Case Product: Fedora.
> 3.click “Search Plan”
> Result: The searched plan whose case product isn't 'Fedora' but is 'Global
> Desktop".
Search result is test plan 1504
Here is a test case with component of  'Fedora' :
https://tcms.englab.nay.redhat.com/case/23801/?from_plan=1504#component

this situation has same reason with the one.
chaobin ,there is confusion when handle the product of test case and product of case's component.

> 
> Situation three:
> Steps: 
> 1.Click “Advanced search”.
> 2.input and type some search options as follows,
>   1).Plan Product:Red Hat Enterprise Linux 5.
>   2).Plan Component:samba.
>   3).Case Product:Fedora.
> 3.click “Search Plan”
> Result: The search result make me confuse...But not meet the search options.

Comment 8 Chaobin Tang 2011-05-11 08:46:40 UTC
I've switched the implementation now, during the process the problems above were locally verified and confirmed fixed.

Comment 9 Jin Zhao 2011-05-18 09:39:08 UTC
Verify version: 3.4 on stage (3.4-5)
Steps: verify three sutuation as the comment6 
Actual result as following
Situation one: search result is all the cases belong to rhel5 product and samba component.
Situation two: search result is No test plan found
Situation three:search result is No test plan found

Verify result:  PASS

Comment 10 Guoping Feng 2011-07-20 09:28:34 UTC
Verify 3.5.0-3 on stage -->FAIL

Verify steps:
1.Click "Advanced search"
2.Type or select cases files.
   Input1:product:CSP; Component:GateKeeper.
   Input2:product:CSP; Component:SEP.
Click "Search Case" button:
   Result1:No result found.
   Result2:One case 10618 is found.
3.Reload "Advanced Search" page:
   Input1:product:CSP; Component:GateKeeper.
Click "Search Plan/Run":
   Actual Result:Seems all the plans/runs are listed
   Except result:There should be no plans/runs listed, because there is no case satisfying the conditions existing. 
4.Reload "Advanced Search" page:
   Input2:product:CSP; Component:SEP.
Click "Search Plan/Run":
   Actual Result:The plan/run contains the case 10618 is searched out.
   Expected result:Just the actual result.

Comment 11 Guoping Feng 2011-07-20 10:04:54 UTC
This is also verified failed in "Search plan and case via type run's search field".

Input1: Product:CloudEngine; Build:1.1.
Input2: Product:CSP; Build:MR14.

Click "Search Run" button:
Result1: No result found.
Result2: One run 3955 is found.

Click "Search Case/Plan" button:
Result1: Seems all the cases/plans are listed.
Expected result1: No case or plan is found.

Result2: The cases(11408,11409,11410,11411,11413,11428) included in the run 3955 are searched out.
         The plan 1145 containing the run 3955 is found.
Expected result2: Just the actual Result2.

Comment 12 Chaobin Tang 2011-11-02 03:09:31 UTC
It was a programming error that will cause the searching to list all result.

Comment 13 Xin Gao 2011-11-02 08:40:10 UTC
Verify version:
3.6.z on englab -> PASS

Verify steps:
refer to comment 10, and comment 11

Actual results:
Work properly.


Note You need to log in before you can comment on or make changes to this bug.