tcms.core.ajax module

Shared functions for plan/case/run.

Most of these functions are use for Ajax.

class tcms.core.ajax.UpdateTestCaseActorsView(**kwargs)[source]

Bases: django.views.generic.base.View

Updates TestCase.default_tester_id or TestCase.reviewer_id. Called from the front-end.

dispatch(request, *args, **kwargs)
http_method_names = ['post']
post(request)[source]
tcms.core.ajax.clean_bug_form(request)[source]

Verify the form data, return a tuple

(None, ERROR_MSG) on failure

or

(data_dict, ‘’) on success.

tcms.core.ajax.comment_case_runs(request)[source]

Add comment to one or more caseruns at a time.

tcms.core.ajax.say_no(error_msg)[source]
tcms.core.ajax.say_yes()[source]
tcms.core.ajax.tags(request)[source]

Get tags for TestPlan or TestCase. Also counts how many times the same tag has been used for different objects. Used in TP -> Tags and TC -> Tags tabs!

tcms.core.ajax.update_bugs_to_caseruns(request)[source]

Add one or more bugs to or remove that from

one or more caserun at a time.