Modify

Opened 14 years ago

Closed 14 years ago

#7570 closed enhancement (fixed)

Add a relationship table between tickets and test cases in plan, and corresponding API

Reported by: Roberto Longobardi Owned by: Roberto Longobardi
Priority: normal Component: TestManagerForTracPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Add such a relationship table to track n-to-m relationship between the two concepts.

Also add corresponding API to:

  • Retrieve all TCs associated to a ticket
  • Retrieve all tickets associated to a TC in any test plan
  • Retrieve all tickets associated to a TC in a specific plan
  • Retrieve all tickets associated to any TC in a specific plan

Attachments (0)

Change History (2)

comment:1 Changed 14 years ago by Roberto Longobardi

I implemented a smaller set of requirements with ticket #8259 in release 1.3.11.

Take a look, it may just fit your needs.

comment:2 Changed 14 years ago by anonymous

Resolution: fixed
Status: newclosed

Implemented in 1.4.1.

You now have the ability to programmatically get all of the tickets that have been (explicitly) opened against a test case.

From a TestCase object, you can list the tickets opened against it in any test plan.

From a TestCaseInPlan object, you can list the tickets opened against the test case in the specific plan.

from testmanager.model import TestCase, TestCaseInPlan

tc = TestCase(self.env, id, path)
for t in tc.get_related_tickets():
    result += str(t) + ', '

tc = TestCaseInPlan(self.env, id, planid, path)
for t in tc.get_related_tickets():
    result += str(t) + ', '

This is achieved by adding two custom fields to the ticket object, named 'testcaseid' for the test case ID, and 'planid' for the test plan ID.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Roberto Longobardi.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.