{% extends "base.html" %} {% block headleft %} {% if zantao_api %}
当前产品:
{% endif %} {% endblock %} {% block main %}

{{ name }} - Preview

用例: {{ testcases | length }} {% if zantao_api %} / 模块缺失: {{ catagory_nomatch }} / 下载 CSV {% else %} / 下载 CSV {% endif %}

{% for test in testcases %} {% endfor %}
# 模块 用例标题 优先级 用例类型 前置条件 用例步骤
{{ loop.index }}
{{ test.category }}
100 %}class="long-name" {% endif %}>{{ test.name }} {% if test.name|length>100 %} Warn: test name might be too long: {{ test.name|length }}! {% endif %}
优先级 {{ test.importance }} 优先级 {{ test.importance }}
{{ test.execution_type }} {% if test.preconditions %}
{{ test.preconditions | replace('\n','
') |safe }}

前置条件:
{{ test.preconditions | replace('\n','
') |safe }}

{% endif %}
{% if test.steps %}
    {% for step in test.steps %}
  1. {{ step.action | replace('\n','
    ') |safe }} {% if step.expected %}
    • {{ step.expected | replace('\n','
      ') |safe }}
    {% endif %}
  2. {% endfor %}
{% endif %}
{% endblock %}