{% if test_results %}
{% if test_results.n_errors %}
A test job with id {{ test_results.job_id }} ran from {{ test_results.starttime }} until {{ test_results.endtime }} and there were {{ test_results.n_errors }} errors in total.
{% else %}
A test job with id {{ test_results.job_id }} ran from {{ test_results.starttime }} until {{ test_results.endtime }} and there were no errors.
{% endif %}
{% endif %}
{{ content.description }}
{% for test in content.children %}
{% set test_result = test_results.results[test.name] %}
{{ test.description }}
Tests
{% for scenario in test.children %}
{% set scenario_result = test_result[scenario.name] %}
{{ scenario.description }}
{% if scenario.children %}
{% for event in scenario.children %}
{% set event_results = scenario_result[event.name] %}
{{ event.description }}
{% if test_results %}
{% set all_ok=True %}
{% for event_result in event_results %}
{% if not event_result.ok %}
{% set all_ok=False %}
Test failed for browser {{ event_result.browser }}
{{ event_result.errors }}