{% extends "layouts/content-bootstrap.html" %} {% load i18n %} {% load humanize %} {% block styles %} {% endblock %} {% block content %}

Each test result is part of a test run and multiple test runs can be part of the same test job. In the "You are here" breadcrumb list above, click the Run link to go up to the test run detail page to see full details of the test job which generated this test result.

If the test result output was captured as an attachment of the test run, the attachment name and line number will be shown as links. The same output can also be viewed in the attachments of the test run itself.

ID
{{ test_result.test_run.analyzer_assigned_uuid }}/{{ test_result.relative_index }} ({% trans "permalink" %})
Test Case
{% if test_result.test_case %} {{ test_result.test_case }} {% else %} {% trans "unknown test case" %} {% endif %} {% trans "from test" %} {{ test_result.test_run.test }}
{% with test_result.test_run.attributes.values as attrs %}
{% for item in attrs|dictsort:"name" %}
{{ item.name }}
{{ item.value }}
{% empty %} none {% endfor %}
{% endwith %}
{% with test_result.attributes.values as attrs %}
{% for item in attrs|dictsort:"is_manual" %}
{{ item.name }}
{{ item.value }}
{% empty %} none {% endfor %}
{% endwith %}
{% trans "Outcome" %}
{{ test_result.result_code }} {{ test_result.result_code }}
{% trans "Measurement" %}
{% if test_result.measurement != None and test_result.measurement != "" %} {{ test_result.measurement }} {{ test_result.test_case.units }} {% else %} {% trans "no measurement taken" %} {% endif %}
{% trans "output file/location" %}
{% if test_result.filename %} {% if test_result.related_attachment_available and test_result.related_attachment.is_viewable %} {% with test_result.related_attachment as attachment %} {{ test_result.filename }} line {{ test_result.lineno }} {% endwith %} {% else %} {{ test_result.filename }} line {{ test_result.lineno }} {% endif %} {% else %} {% trans "no output captured for this test result" %} {% endif %}
{% trans "Message from the log file" %}
{% if test_result.message %}
{{ test_result.message }}
{% else %} {% trans "no message was captured for this test result" %} {% endif %}
{% trans "Test started on" %}
{% if test_result.timestamp %} {{ test_result.timestamp|naturalday }} {{ test_result.timestamp|time }} {% else %} {% trans "test result did not output a start time" %} {% endif %}
{% trans "Test duration" %}
{% if test_result.duration %} {# TODO need a filter for displaying this sensibly. Currently there are some rounding errors #} {{ test_result.duration }} {% else %} {% trans "test result did not output a duration" %} {% endif %}
{% if test_result.comments or test_result.comments != "" %} {{ test_result.comments|linebreaksbr }} {% else %} {% trans "no comments" %} {% endif %}
{% include "dashboard_app/_attachments.html" with attachments=test_result.attachments %}
{% if test_result.test_run.get_results.count > 1 %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}