tcms.report.views module

class tcms.report.views.CustomDetailReport(**kwargs)[source]

Bases: tcms.report.views.CustomReport

Custom detail report

Reuse CustomReport._search_context to get build and its summary statistics

data_class

alias of tcms.report.data.CustomDetailsReportData

form_class

alias of tcms.report.forms.CustomSearchDetailsForm

read_case_runs(build_ids, status_ids)[source]

Generator for reading case runs and related objects

template_name = 'report/custom_details.html'
class tcms.report.views.CustomReport(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

data_class

alias of tcms.report.data.CustomReportData

form_class

alias of tcms.report.forms.CustomSearchForm

get_context_data(**kwargs)[source]
product = None
template_name = 'report/custom_search.html'
class tcms.report.views.ProductBuildReport(**kwargs)[source]

Bases: django.views.generic.base.TemplateView, tcms.report.data.ProductBuildReportData

get(request, *args, **kwargs)[source]
get_context_data(**kwargs)[source]
product = None
selected_build = None
template_name = 'report/build.html'
class tcms.report.views.ProductComponentReport(**kwargs)[source]

Bases: django.views.generic.base.TemplateView, tcms.report.data.ProductComponentReportData

get(request, *args, **kwargs)[source]
get_context_data(**kwargs)[source]
product = None
selected_component = None
template_name = 'report/component.html'
class tcms.report.views.ProductVersionReport(**kwargs)[source]

Bases: django.views.generic.base.TemplateView, tcms.report.data.ProductVersionReportData

get(request, *args, **kwargs)[source]
get_context_data(**kwargs)[source]
product = None
selected_version = None
template_name = 'report/version.html'
class tcms.report.views.TestingReport(**kwargs)[source]

Bases: django.views.generic.base.View

Dispatch testing report according to report type

get(request, *args, **kwargs)[source]
testing_report_views = {None: <class 'tcms.report.views.TestingReportByCaseRunTester'>, 'per_build_report': <class 'tcms.report.views.TestingReportByCaseRunTester'>, 'per_priority_report': <class 'tcms.report.views.TestingReportByCasePriority'>, 'runs_with_rates_per_plan_tag': <class 'tcms.report.views.TestingReportByPlanTags'>, 'per_plan_tag_report': <class 'tcms.report.views.TestingReportByPlanTagsDetail'>, 'runs_with_rates_per_plan_build': <class 'tcms.report.views.TestingReportByPlanBuild'>, 'per_plan_build_report': <class 'tcms.report.views.TestingReportByPlanBuildDetail'>}
class tcms.report.views.TestingReportBase(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

Base class for each type of report

form_class

alias of tcms.report.forms.TestingReportForm

get_context_data(**kwargs)[source]
class tcms.report.views.TestingReportByCasePriority(**kwargs)[source]

Bases: tcms.report.views.TestingReportBase, tcms.report.data.TestingReportByCasePriorityData

template_name = 'report/testing-report/per_priority_report.html'
class tcms.report.views.TestingReportByCaseRunTester(**kwargs)[source]

Bases: tcms.report.views.TestingReportBase, tcms.report.data.TestingReportByCaseRunTesterData

template_name = 'report/testing-report/per_build_report.html'
class tcms.report.views.TestingReportByPlanBuild(**kwargs)[source]

Bases: tcms.report.views.TestingReportBase, tcms.report.data.TestingReportByPlanBuildData

template_name = 'report/testing-report/by_plan_build_with_rates.html'
class tcms.report.views.TestingReportByPlanBuildDetail(**kwargs)[source]

Bases: tcms.report.views.TestingReportBase, tcms.report.data.TestingReportByPlanBuildDetailData

template_name = 'report/testing-report/per_plan_build.html'
class tcms.report.views.TestingReportByPlanTags(**kwargs)[source]

Bases: tcms.report.views.TestingReportBase, tcms.report.data.TestingReportByPlanTagsData

template_name = 'report/testing-report/by_plan_tag_with_rates.html'
class tcms.report.views.TestingReportByPlanTagsDetail(**kwargs)[source]

Bases: tcms.report.views.TestingReportBase, tcms.report.data.TestingReportByPlanTagsDetailData

template_name = 'report/testing-report/per_plan_tag.html'
class tcms.report.views.TestingReportCaseRuns(**kwargs)[source]

Bases: tcms.report.views.TestingReportBase, tcms.report.data.TestingReportCaseRunsData

form_class

alias of tcms.report.forms.TestingReportCaseRunsListForm

get_context_data(**kwargs)[source]
template_name = 'report/caseruns.html'
walk_case_runs(test_case_runs)[source]
tcms.report.views.overall(request, template_name='report/list.html')[source]

Overall of products report

tcms.report.views.overview(request, product_id, template_name='report/overview.html')[source]

Product for a product

tcms.report.views.walk_matrix_row_by_row(matrix_dataset)[source]