<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE testopia SYSTEM "testopia.dtd" [
        <!ENTITY testopia_lt "<">
        <!ENTITY testopia_gt ">">
        ]>
<testopia version="1.1">
    {% for case, components, text, tags in cases_info %}
    <testcase author="{{ case.author.email }}"
              priority="{{ case.priority.value }}"
              automated="{{ case.is_automated }}"
              status="{{ case.case_status.name }}">
        <summary>{{ case.summary }}</summary>
        <categoryname>{{ case.category.name }}</categoryname>
        {% for component in components %}
        <component product="{{ component.product_name }}">
            {{ component.component_name }}
        </component>
        {% endfor %}
        <defaulttester>{{ case.default_tester.email|default:"" }}</defaulttester>
        <notes>{{ case.notes }}</notes>
        <action>{{ text.action }}</action>
        <expectedresults>{{ text.effect }}</expectedresults>
        <setup>{{ text.setup }}</setup>
        <breakdown>{{ text.breakdown }}</breakdown>
        {% for tag in tags %}
        <tag>{{ tag }}</tag>
        {% endfor %}
        <testplan_reference type="Xml_description">
            {% for plan in case.plan.all %}
            <item>{{ plan.name }}</item>
            {% endfor %}
        </testplan_reference>
    </testcase>
    {% endfor %}
</testopia>
