Test Runs

class tcms.testruns.models.TestCaseRun(case_run_id, case_text_version, running_date, close_date, notes, sortkey, environment_id, assignee, tested_by, run, case, case_run_status, build)
exception DoesNotExist
exception MultipleObjectsReturned
add_issue(issue_key, issue_tracker, summary=None, description=None, link_external_tracker=False)

Add an issue to this case run

Every argument has same meaning of argument of TestCase.add_issue().

Parameters
  • issue_key (str) – issue key to add.

  • issue_tracker (IssueTracker) – issue tracker the issue key should belong to.

  • summary (str) – issue’s summary.

  • description (str) – issue’s description.

  • link_external_tracker (bool) – whether to add case to issue’s external tracker in remote issue tracker.

Returns

the newly added issue.

Return type

Issue

get_issues() QuerySet

Get issues added to this case run

Returns

a queryset of the issues.

get_issues_count()

Return the number of issues added to this case run

Returns

the number of issues.

Return type

int

remove_issue(issue_key)

Remove issue from this case run

Parameters

issue_key (str) – issue key to remove.

classmethod to_xmlrpc(query={})

Convert the query set for XMLRPC