tcms.testcases.forms module

class tcms.testcases.forms.BaseCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'arguments': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <tcms.core.forms.fields.StripURLField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
declared_fields = {'arguments': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <tcms.core.forms.fields.StripURLField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
media
populate(product_id=None)[source]
class tcms.testcases.forms.BaseCaseSearchForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'author': <django.forms.fields.CharField object>, 'bug_id': <tcms.testcases.forms.BugField object>, 'case_status': <django.forms.models.ModelMultipleChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'component': <django.forms.models.ModelChoiceField object>, 'default_tester': <django.forms.fields.CharField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'items_per_page': <django.forms.fields.ChoiceField object>, 'priority': <django.forms.models.ModelMultipleChoiceField object>, 'summary': <django.forms.fields.CharField object>, 'tag__name__in': <django.forms.fields.CharField object>}
clean_bug_id()[source]
clean_tag__name__in()[source]
declared_fields = {'author': <django.forms.fields.CharField object>, 'bug_id': <tcms.testcases.forms.BugField object>, 'case_status': <django.forms.models.ModelMultipleChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'component': <django.forms.models.ModelChoiceField object>, 'default_tester': <django.forms.fields.CharField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'items_per_page': <django.forms.fields.ChoiceField object>, 'priority': <django.forms.models.ModelMultipleChoiceField object>, 'summary': <django.forms.fields.CharField object>, 'tag__name__in': <django.forms.fields.CharField object>}
media
populate(product_id=None)[source]

Limit the query to fit the plan

class tcms.testcases.forms.BugField(*, max_length=None, min_length=None, strip=True, empty_value='', **kwargs)[source]

Bases: django.forms.fields.CharField

Customizing forms CharFiled validation. Bug ID seperated using a delimiter such as comma.

validate(value)[source]
class tcms.testcases.forms.CaseNotifyForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'assignees_of_case_runs': <django.forms.fields.BooleanField object>, 'author': <django.forms.fields.BooleanField object>, 'cc_list': <tcms.testcases.fields.MultipleEmailField object>, 'default_tester_of_case': <django.forms.fields.BooleanField object>, 'default_testers_of_runs': <django.forms.fields.BooleanField object>, 'managers_of_runs': <django.forms.fields.BooleanField object>, 'notify_on_case_delete': <django.forms.fields.BooleanField object>, 'notify_on_case_update': <django.forms.fields.BooleanField object>}
declared_fields = {'assignees_of_case_runs': <django.forms.fields.BooleanField object>, 'author': <django.forms.fields.BooleanField object>, 'cc_list': <tcms.testcases.fields.MultipleEmailField object>, 'default_tester_of_case': <django.forms.fields.BooleanField object>, 'default_testers_of_runs': <django.forms.fields.BooleanField object>, 'managers_of_runs': <django.forms.fields.BooleanField object>, 'notify_on_case_delete': <django.forms.fields.BooleanField object>, 'notify_on_case_update': <django.forms.fields.BooleanField object>}
media
class tcms.testcases.forms.CloneCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'case': <django.forms.models.ModelMultipleChoiceField object>, 'copy_case': <django.forms.fields.BooleanField object>, 'copy_component': <django.forms.fields.BooleanField object>, 'maintain_case_orignal_author': <django.forms.fields.BooleanField object>, 'maintain_case_orignal_default_tester': <django.forms.fields.BooleanField object>, 'plan': <django.forms.models.ModelMultipleChoiceField object>}
declared_fields = {'case': <django.forms.models.ModelMultipleChoiceField object>, 'copy_case': <django.forms.fields.BooleanField object>, 'copy_component': <django.forms.fields.BooleanField object>, 'maintain_case_orignal_author': <django.forms.fields.BooleanField object>, 'maintain_case_orignal_default_tester': <django.forms.fields.BooleanField object>, 'plan': <django.forms.models.ModelMultipleChoiceField object>}
media
populate(case_ids)[source]
class tcms.testcases.forms.NewCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testcases.forms.BaseCaseForm

base_fields = {'arguments': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <tcms.core.forms.fields.StripURLField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
clean_case_status()[source]
declared_fields = {'arguments': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <tcms.core.forms.fields.StripURLField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
media
class tcms.testcases.forms.QuickSearchCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'case_id_set': <django.forms.fields.CharField object>}
clean_case_id_set()[source]
declared_fields = {'case_id_set': <django.forms.fields.CharField object>}
media
class tcms.testcases.forms.SearchCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testcases.forms.BaseCaseSearchForm

base_fields = {'author': <django.forms.fields.CharField object>, 'bug_id': <tcms.testcases.forms.BugField object>, 'case_status': <django.forms.models.ModelMultipleChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'component': <django.forms.models.ModelChoiceField object>, 'default_tester': <django.forms.fields.CharField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'items_per_page': <django.forms.fields.ChoiceField object>, 'plan': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelMultipleChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'search': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'tag__name__in': <django.forms.fields.CharField object>}
clean_case_status()[source]
clean_priority()[source]
declared_fields = {'author': <django.forms.fields.CharField object>, 'bug_id': <tcms.testcases.forms.BugField object>, 'case_status': <django.forms.models.ModelMultipleChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'component': <django.forms.models.ModelChoiceField object>, 'default_tester': <django.forms.fields.CharField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'items_per_page': <django.forms.fields.ChoiceField object>, 'plan': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelMultipleChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'search': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'tag__name__in': <django.forms.fields.CharField object>}
media
class tcms.testcases.forms.XMLRPCBaseCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testcases.forms.BaseCaseForm

base_fields = {'arguments': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <tcms.core.forms.fields.StripURLField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
declared_fields = {'arguments': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <tcms.core.forms.fields.StripURLField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
media
class tcms.testcases.forms.XMLRPCNewCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testcases.forms.XMLRPCBaseCaseForm

base_fields = {'arguments': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <tcms.core.forms.fields.StripURLField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
clean_case_status()[source]
declared_fields = {'arguments': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <tcms.core.forms.fields.StripURLField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
media
class tcms.testcases.forms.XMLRPCUpdateCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testcases.forms.XMLRPCBaseCaseForm

base_fields = {'arguments': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <tcms.core.forms.fields.StripURLField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
declared_fields = {'arguments': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <tcms.core.forms.fields.StripURLField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
media