{% extends "base.html" %} {% from "dashboard/_macros.html" import stamp, num, hbars, needs_json %} {% block title %}测试资产 · tuner workbench{% endblock %} {% block body %} {% set c = dash.counts or {} %}

测试资产

{{ stamp(dash) }}
{{ num(c.testcases) }}测试用例
{{ num(c.testsheets_active) }}进行中测试单
{{ num(c.testsheets_archived) }}已归档测试单
{{ num(c.requirements) }}需求
{{ num(c.defects) }}缺陷
{{ needs_json(dash) }} {% if section and not section.error %}

进行中测试单

{% if section.testsheets.active %} {% for r in section.testsheets.active %} {% if r.error %} {% else %} {% endif %} {% endfor %}
轮次用例进度通过失败阻塞忽略待执行缺陷(未关)检查问题
{{ r.round }}{{ r.error }}{{ r.total }} {% set t = r.total or 1 %}
{{ r.passed }}{{ r.failed }}{{ r.blocked }}{{ r.ignored }}{{ r.pending }} {{ r.defects }}({{ r.defects_open }}) {{ r.issues }}

进度条:绿 通过 · 红 失败 · 黄 阻塞 · 灰 忽略;空白为待执行。检查问题是 tuner-testreport stats --check 的 error 数。

{% else %}

没有进行中的测试单。

{% endif %} {% if section.testsheets.archived %}

已归档:{{ section.testsheets.archived|join("、") }}

{% endif %}

用例按模块

{{ hbars(section.testcases.by_module) }}

用例按状态

{{ hbars(section.testcases.by_status) }}

缺陷按状态

{{ hbars(section.defects.by_status) }}
{% if section.truncated %}

扫描到上限被截断:{{ section.truncated|join("、") }}

{% endif %} {% endif %} {% endblock %}