tcms.testruns.views module

class tcms.testruns.views.AddCasesToRunView(**kwargs)[source]

Bases: django.views.generic.base.View

Add cases to a TestRun

dispatch(request, *args, **kwargs)
get(request, pk)[source]
post(request, pk)[source]
class tcms.testruns.views.ChangeTestRunStatusView(**kwargs)[source]

Bases: django.views.generic.base.View

Change test run finished or running

dispatch(request, *args, **kwargs)
get(request, pk)[source]
http_method_names = ['get']
class tcms.testruns.views.CloneTestRunView(**kwargs)[source]

Bases: django.views.generic.base.View

Clone cases from filter caserun

dispatch(request, *args, **kwargs)
http_method_names = ['post']
post(request, pk)[source]
template_name = 'testruns/mutable.html'
class tcms.testruns.views.CreateTestRunView(**kwargs)[source]

Bases: django.views.generic.base.View

Display the create test run page.

dispatch(request, *args, **kwargs)
http_method_names = ['post']
post(request)[source]
template_name = 'testruns/mutable.html'
class tcms.testruns.views.EditTestRunView(**kwargs)[source]

Bases: django.views.generic.edit.UpdateView

dispatch(request, *args, **kwargs)
form_class

alias of tcms.testruns.forms.BaseRunForm

get_context_data(**kwargs)[source]

Insert the form into the context dict.

get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

get_initial()[source]

Return the initial data to use for forms on this view.

model

alias of tcms.testruns.models.TestRun

template_name = 'testruns/mutable.html'
class tcms.testruns.views.GetTestRunView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

Display testrun’s details

get_context_data(**kwargs)[source]
template_name = 'run/get.html'
class tcms.testruns.views.ManageTestRunCC(**kwargs)[source]

Bases: django.views.generic.base.View

Add or remove cc from a test run

dispatch(request, *args, **kwargs)
get(request, pk)[source]
http_method_names = ['get']
template_name = 'run/get_cc.html'
class tcms.testruns.views.SearchTestRunView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

get_context_data(**kwargs)[source]
template_name = 'testruns/search.html'
class tcms.testruns.views.TestRunReportView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView, tcms.testruns.data.TestExecutionDataMixin

Test Run report

get_context_data(**kwargs)[source]

Generate report for specific TestRun

There are four data source to generate this report. 1. TestRun 2. Test executions included in the TestRun 3. Comments associated with each test execution 4. Statistics 5. bugs

template_name = 'run/report.html'
tcms.testruns.views.get_caseruns_of_runs(runs, kwargs=None)[source]
Filtering argument -
priority tester plan tag
tcms.testruns.views.open_run_get_comments_subtotal(execution_ids)[source]
tcms.testruns.views.open_run_get_users(case_runs)[source]