Modify

Opened 4 years ago

Closed 4 years ago

#7570 closed enhancement (fixed)

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

Reported by: seccanj Owned by: seccanj
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 4 years ago by seccanj

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 4 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.