📧 {{ session.suite_name or 'Test Suite' }} - Test Report

{{ session.end_time.strftime('%Y-%m-%d %H:%M:%S') }}

📋 Email Subject

{{ session.suite_name or 'Test Suite' }} Report : {{ session.end_time.strftime('%Y:%m:%d') }}: Total : {{ summary.total }} ; Pass : {{ summary.passed }}: Fail : {{ summary.failed }} ; PassWExcep: {{ summary.passed }}/{{ summary.total }}

Total Tests

{{ summary.total }}

Passed

{{ summary.passed }}

Failed

{{ summary.failed }}
{% if summary.skipped > 0 %}

Skipped

{{ summary.skipped }}
{% endif %}

Pass Rate

{{ "%.1f"|format(summary.pass_rate) }}%
{% if summary.failed > 0 %}

❌ Failed Tests ({{ summary.failed }})

{% for scenario in scenarios %} {% if scenario.status == 'failed' %}
{{ scenario.name }}
{% if scenario.feature %}
Suite: {{ scenario.feature }}
{% endif %} {% if scenario.error %}
{{ scenario.error[:200] }}{% if scenario.error|length > 200 %}...{% endif %}
{% endif %}
{% endif %} {% endfor %}
{% endif %}

📊 Test Results

{% for scenario in scenarios %} {% endfor %}
Test Name Status Suite Duration Tags
{{ scenario.name }} {{ scenario.status|upper }} {{ scenario.feature or 'Unknown' }} {{ "%.3f"|format(scenario.duration) }}s {% for tag in scenario.tags %} {{ tag }} {% endfor %}
{% if features %}

📦 Suite Statistics

{% for feature in features %} {% endfor %}
Suite Total Passed Failed Pass Rate
{{ feature.name }} {{ feature.passed + feature.failed + feature.skipped }} {{ feature.passed }} {{ feature.failed }} {% set total = feature.passed + feature.failed + feature.skipped %} {% if total > 0 %} {{ "%.1f"|format((feature.passed / total) * 100) }}% {% else %} 0.0% {% endif %}
{% endif %}

📈 Key Metrics

  • 🎯 Total Execution Time: {{ "%.2f"|format(session.duration) }} seconds
  • 📅 Test Date: {{ session.end_time.strftime('%Y-%m-%d') }}
  • Test Time: {{ session.end_time.strftime('%H:%M:%S') }}
  • 🏷️ Suite: {{ session.suite_name or 'Test Suite' }}
  • {% if summary.failed == 0 %}
  • Status: All Tests Passed
  • {% else %}
  • ⚠️ Status: {{ summary.failed }} Test(s) Failed
  • {% endif %}

📋 Copy Email Content

Choose the best format for your email client: