summaryrefslogtreecommitdiff
path: root/plans/templates/_test_details.html
blob: b369e07423e80d157684cc66cd64f7433be959ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<table class="table table-striped">
    <tbody>
        {% for key,value in test.items() %}
            {% if key != 'missing' and key != 'filename' and key != 'steps' and key != 'expected'%}
            <tr>
                <td>{{ key }}</td>
                <td>
                {% if value is mapping %}
                    {% for subkey,subvalue in value.items() %}
                    <strong>{{ subkey }}</strong>: {{ subvalue }}<br/>
                    {% endfor %}
                {% else %}
                    {{ value }}
                {% endif %}
            </tr>
            {% endif %}
        {% endfor %}
    </tbody>
</table>
{% if 'filename' in test and test.filename != "" %}
<h4><a href="{{ test.filename }}">details</a></h4>
{% elif 'steps' in test %}
<h4>Steps to execute</h4>
<ol>
    {% for step in test.steps %}
    <li>{{ step }} </li>
    {% endfor %}
</ol>
    {% if 'expected' in test %}
    <h4>Expected results</h4>
    <ol>
        {% for step in test.expected %}
        <li>{{ step }} </li>
        {% endfor %}
    </ol>
    {% endif %}
{% endif %}