Snippets

Randle Taylor Adding comments to QATrack+ email notification

Created by Randle Taylor last modified
=== Notifications for {{test_list_instance.test_list.name}} ===

Test List : {{test_list_instance.test_list.name}}
Unit      : {{test_list_instance.unit_test_collection.unit.name}}
Date      : {{test_list_instance.work_completed }}
Comments  : {% if test_list_instance.comment %}{{test_list_instance.comment}}{% else %}No comment{% endif %}

Test Comments
=============
{% for test_instance in test_list_instance.test_instance_set.all %}
    {% if test_instance.comment %}
    Test    : {{test_instance.unit_test_info.test.name}}
    Comment : {{test_instance.comment}}
    
    {% endif %}
{% endfor %}

{% if failing_tests %}
Failing Tests
=============
{% for test_instance in failing_tests %}
    Test  : {{test_instance.unit_test_info.test.name}}
    Value : {{test_instance.value_display}}
    Ref.  : {{test_instance.reference}}
    Tol.  : {{test_instance.tolerance}}
{% endfor %}
{% endif %}

{% if tolerance_tests %}
Tests at Tolerance
==================
{% for test_instance in tolerance_tests %}
    Test  : {{test_instance.unit_test_info.test.name}}
    Value : {{test_instance.value_display}}
    Ref.  : {{test_instance.reference}}
    Tol.  : {{test_instance.tolerance}}
{% endfor %}
{% endif %}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.