{% load static %} {% comment %} Template for rendering rows of TestCases. Rows are TR tags used in a TABLE tag. Arguments: - test_cases: an iterable object containing all TestCases. Particularly, test_cases should be a queryset of a list of TestCases. - selected_case_ids: used to select loaded cases. - test_plan: its pk is used here. {% endcomment %} {% for test_case in test_cases %} {# FIXME: replacing selected_case_ids with selected_cases_ids is proper #} {{ test_case.pk }} {{ test_case.summary }} {{ test_case.author }} {% if test_case.case_status.name == 'CONFIRMED' %} {# Show default tester when confirmed. #} {% if test_case.default_tester_id %}{% endif %}{{ test_case.default_tester }}{% if test_case.default_tester_id %}{% endif %} {% else %} {# Show reviewer when not confirmed. #} {% if test_case.reviewer_id %}{% endif %}{{ test_case.reviewer }}{% if test_case.reviewer_id %}{% endif %} {% endif %} {{ test_case.get_is_automated_status }} {# {{ testcase.create_date }} #} {% if perms.testcases.change_testcase %} {% else %} {{ test_case.case_status }} {% endif %} {{ test_case.category }} {{ test_case.priority }} {{ test_case.category }} {{ test_case.cal_sortkey }} {{ test_case.cal_testcaseplan_pk }} {% if perms.testcases.change_testcase %} Edit {% else %} Edit {% endif %}
{% empty %}
No test case was found in this plan.
{% endfor %}