Bug 700116

Summary: [RFE] TCMS - TestPlan: 'Automated' property is missing
Product: [Other] TCMS Reporter: Max Benenson <mbenenso>
Component: ApplicationAssignee: Yuguang Wang <yuwang>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.4CC: ctang, junzhang, llim, nli, vchen, yawli
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-22 07:54:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Max Benenson 2011-04-27 14:01:06 UTC
Description of problem:
TCMS TestPlan entity has lack of 'Automated' property. Such property presents in TestCase entity and it allows to search and filter out all TestCases which are created via nitrate api for example. Adding 'Automated' property to the TestPlan entity will allow more simple and flexible search to perform via GUI.

Comment 1 Danqing Li 2011-05-04 06:03:57 UTC
after 3.4 release, there will be advanced-search feature, you can search plan that contains the 'Automated' test cases , do you still need mark the plan as 'Auto' then ?

3.4 will on product after 2 weeks testing.

Comment 2 Max Benenson 2011-05-04 08:10:14 UTC
(In reply to comment #1)
> after 3.4 release, there will be advanced-search feature, you can search plan
> that contains the 'Automated' test cases , do you still need mark the plan as
> 'Auto' then ?
> 
> 3.4 will on product after 2 weeks testing.

No I don't, I think the solution above is ok. The advanced search will have an API also? I mean, could I search all TestPlans with attached 'Automated' TestCases using Nitrate xmlrpc API? Please answer and after that I will close this bug. Thank you.

Comment 3 Danqing Li 2011-05-04 08:24:26 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > after 3.4 release, there will be advanced-search feature, you can search plan
> > that contains the 'Automated' test cases , do you still need mark the plan as
> > 'Auto' then ?
> > 
> > 3.4 will on product after 2 weeks testing.
> 
> No I don't, I think the solution above is ok. The advanced search will have an
> API also? I mean, could I search all TestPlans with attached 'Automated'
> TestCases using Nitrate xmlrpc API? Please answer and after that I will close
> this bug. Thank you.

Thank you for reply .
API still need  to wait for 3.5. So keep open this bug.

Comment 4 Yuguang Wang 2011-06-08 06:59:27 UTC
> No I don't, I think the solution above is ok. The advanced search will have an
> API also? I mean, could I search all TestPlans with attached 'Automated'
> TestCases using Nitrate xmlrpc API? Please answer and after that I will close
> this bug. Thank you.

Hi Max,

Please try this command:
n = NitrateKerbXmlrpc('https://tcms.engineering.redhat.com/xmlrpc/')
n.server.TestPlan.filter({'case__is_automated':1})

This will list all plans with 'automated' cases in them.