📋 Copy Email Content
Subject: Test Report - {{ session.suite_name or 'Test Suite' }} - {{ session.end_time.strftime('%d/%m/%Y') }}
Test Report Summary
Suite Name: {{ session.suite_name or 'Test Suite' }}
Date: {{ session.end_time.strftime('%d/%m/%Y') }}
Total Tests: {{ summary.total }}
Passed: {{ summary.passed }}
Failed: {{ summary.failed }}
Passed/Expected: {{ summary.passed }}/{{ summary.total }} ({{ "%.1f"|format(summary.pass_rate) }}%)
Duration: {{ "%.2f"|format(session.duration) }}s
Key Results:
- Total Tests: {{ summary.total }}
- Passed: {{ summary.passed }}
- Failed: {{ summary.failed }}
- Pass Rate: {{ "%.1f"|format(summary.pass_rate) }}%
- Duration: {{ "%.2f"|format(session.duration) }}s
{% if summary.failed > 0 %}
Failed Tests:
{% for scenario in scenarios %}{% if scenario.status == 'failed' %}- {{ scenario.name }}{% if scenario.error %}: {{ scenario.error.split('\n')[0][:100] }}{% if scenario.error.split('\n')[0]|length > 100 %}...{% endif %}{% endif %}
{% endif %}{% endfor %}{% endif %}
Generated: {{ session.end_time.strftime('%Y-%m-%d %H:%M:%S') }}
View full report: {{ report_url or 'See attached report' }}
📊 Test Report Summary
| Suite Name: |
{{ session.suite_name or 'Test Suite' }} |
| Date: |
{{ session.end_time.strftime('%d/%m/%Y') }} |
| Total Tests: |
{{ summary.total }} |
| Passed: |
{{ summary.passed }} |
| Failed: |
{{ summary.failed }} |
{% if summary.skipped > 0 %}
| Skipped: |
{{ summary.skipped }} |
{% endif %}
| Passed/Expected: |
{{ summary.passed }}/{{ summary.total }} ({{ "%.1f"|format(summary.pass_rate) }}%) |
| Duration: |
{{ "%.2f"|format(session.duration) }}s |
{% if summary.failed > 0 %}
❌ Failed Tests ({{ summary.failed }})
{% for scenario in scenarios %}
{% if scenario.status == 'failed' %}
{{ scenario.name }}
{% if scenario.error %}
{{ scenario.error.split('\n')[0][:150] }}{% if scenario.error.split('\n')[0]|length > 150 %}...{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if summary.passed > 0 %}
✅ Key Achievements
- {{ summary.passed }} tests passed successfully
- Pass rate: {{ "%.1f"|format(summary.pass_rate) }}%
- Total execution time: {{ "%.2f"|format(session.duration) }}s
{% if session.features %}
- Tested {{ session.features|length }} feature(s)
{% endif %}
{% endif %}