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, run_id)[source]
post(request, run_id)[source]
class tcms.testruns.views.TestRunReportView(**kwargs)[source]

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

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 case runs included in the TestRun 3. Comments associated with each test case run 4. Statistics 5. bugs

template_name = 'run/report.html'
class tcms.testruns.views.UpdateAssigneeView(**kwargs)[source]

Bases: django.views.generic.base.View

Updates TestCaseRun.assignee. Called from the front-end.

dispatch(request, *args, **kwargs)
http_method_names = ['post']
post(request)[source]
class tcms.testruns.views.UpdateCaseRunStatusView(**kwargs)[source]

Bases: django.views.generic.base.View

Updates TestCaseRun.case_run_status_id. Called from the front-end.

dispatch(request, *args, **kwargs)
http_method_names = ['post']
post(request)[source]
tcms.testruns.views.bug(request, case_run_id, template_name='run/execute_case_run.html')[source]

Process the bugs for case runs.

tcms.testruns.views.cc(request, run_id)[source]

Add or remove cc from a test run

tcms.testruns.views.change_status(request, run_id)[source]

Change test run finished or running

tcms.testruns.views.clone(request, run_id)[source]

Clone cases from filter caserun

tcms.testruns.views.edit(request, run_id)[source]

Edit test plan view

tcms.testruns.views.get(request, run_id, template_name='run/get.html')[source]

Display testrun’s detail

tcms.testruns.views.get_caseruns_of_runs(runs, kwargs=None)[source]
Filtering argument -
priority tester plan tag
tcms.testruns.views.new(request)[source]

Display the create test run page.

tcms.testruns.views.open_run_get_case_runs(request, run)[source]

Prepare for case runs list in a TestRun page

This is an internal method. Do not call this directly.

tcms.testruns.views.open_run_get_comments_subtotal(case_run_ids)[source]
tcms.testruns.views.open_run_get_users(case_runs)[source]
tcms.testruns.views.remove_case_run(request, run_id)[source]

Remove specific case run from the run

tcms.testruns.views.search(request)[source]
tcms.testruns.views.update_case_run_text(request, run_id)[source]

Update the IDLE cases to newest text