tcms.issuetracker.bugzilla_integration module

class tcms.issuetracker.bugzilla_integration.Bugzilla(bug_system, request)[source]

Bases: tcms.issuetracker.base.IssueTrackerType

Support for Bugzilla. Requires:

  • the XML-RPC URL for your Bugzilla instance
  • a username registered in Bugzilla
  • the password for this username

You can also provide the BUGZILLA_AUTH_CACHE_DIR setting (in to control where authentication cookies for Bugzilla will be saved. If this is not provided a temporary directory will be used each time we try to login into Bugzilla!


alias of BugzillaThread

one_click_report(execution, user, args)[source]

Attempt 1-click bug report! Unmodified Bugzilla requires Product, Component, Version and Summary! OS and Hardware fields are set to All!


This can fail due to Bugzilla requiring more fields, because the API user doesn’t have permissions to report in the chosen Product, becase TC info is incomplete or because any of the specified fields doesn’t exist!

It is up to the Bugzilla/TCMS admin to make sure these are in sync! Alternatively inherit this class and override this method!

report_issue_from_testexecution(execution, user)[source]

First attempt 1-click bug report and if that fails fall back to a URL with some of the values pre-defined as query parameters!

class tcms.issuetracker.bugzilla_integration.BugzillaThread(rpc, bug_system, execution, bug_id)[source]

Bases: tcms.issuetracker.base.IntegrationThread

Execute Bugzilla RPC code in a thread!

Executed from the IssueTracker interface methods.