{% from "explorer.html" import explorer_header, explorer_content, explorer_footer %} {% from "sequence_view/severity.html" import severity_symbol, severity_class with context %} {% macro participant_list(participants) -%} {%- if participants|length == 1 -%} {{ participants[0]|e }} {%- elif participants|length == 2 -%} {{ participants[0]|e }} and {{ participants[1]|e }} {%- else -%} {{ participants[:-1]|join(', ')|e }}, and {{ participants[-1]|e }} {%- endif -%} {%- endmacro %} s{{ test_scenario.scenario_index }} - {{ test_scenario.name }} {% include "sequence_view/style.html" %} {{ explorer_header() }} {% set collapsible = namespace(queries=[]) %}
{% if test_scenario.url %}

{{ test_scenario.name }}

{% else %}

{{ test_scenario.name }}

{% endif %}

{{ test_scenario.type }}

Resources

    {% for local_resource_id, resource_origin in test_scenario.resource_origins.items() %} {% set participants = test_scenario.resource_participants.get(local_resource_id, []) %}
  • {{ local_resource_id }}{% if participants %} for {{ participant_list(participants) }}{% endif %} provided by {{ resource_origin }}
  • {% endfor %}
{% set collapsible.queries = collapsible.queries + ["resource_origin_list"] %}

Execution

Execution characteristic Value
Start time {{ test_scenario.start_time.strftime("%Y-%m-%d %H:%M:%S %Z") }}
End time {{ test_scenario.end_time.strftime("%Y-%m-%d %H:%M:%S %Z") }}
Duration {{ test_scenario.duration }}
{% if kml_file %}

KML visualization

{% endif %} {% for participant_id in all_participants %} {% endfor %} {% set first_row = namespace(epoch=True, step=True) %} {% for epoch in test_scenario.epochs %} {% set first_row.epoch = True %} {% if epoch.case %} {% for test_step in epoch.case.steps %} {% set first_row.step = True %} {% for event in test_step.events %} {% if first_row.epoch %} {% endif %} {% if first_row.step %} {% endif %} {% if event.passed_check %} {% for participant_id in all_participants %} {% if (participant_id != UNATTRIBUTED_PARTICIPANT and participant_id in event.passed_check.participants) or (participant_id == UNATTRIBUTED_PARTICIPANT and not event.passed_check.participants) %} {% else %} {% endif %} {% endfor %} {% elif event.failed_check %} {% for participant_id in all_participants %} {% if (participant_id != UNATTRIBUTED_PARTICIPANT and participant_id in event.failed_check.participants) or (participant_id == UNATTRIBUTED_PARTICIPANT and not event.failed_check.participants) %} {% else %} {% endif %} {% endfor %} {% elif event.query %} {% for participant_id in all_participants %} {% if (participant_id != UNATTRIBUTED_PARTICIPANT and participant_id == event.query.get("participant_id", None)) or (participant_id == UNATTRIBUTED_PARTICIPANT and not event.query.get("participant_id", None)) %} {% else %} {% endif %} {% endfor %} {% elif event.note %} {% else %} {% endif %} {% set first_row.epoch = False %} {% set first_row.step = False %} {% endfor %} {% endfor %} {% elif epoch.events %} {% for event in epoch.events %} {% if first_row.epoch %} {% endif %} {% set first_row.epoch = False %} {% endfor %} {% endif %} {% endfor %}
Case Step Event {% if participant_id != UNATTRIBUTED_PARTICIPANT %} {{ participant_id }} {% else %} <None> {% endif %}
{% if epoch.case.url %} {{ epoch.case.name }} {% else %} {{ epoch.case.name }} {% endif %} {% if test_step.url %} {{ test_step.name }} {% else %} {{ test_step.name }} {% endif %} {{ event.event_index }}✅ {{ event.passed_check.name }} ✅{{ severity_symbol(event.failed_check.severity) }} {% if event.failed_check.documentation_url %} {{ event.failed_check.name }} {% else %} {{ event.failed_check.name }} {% endif %} {% if event.query_events %} [{{ event.get_query_links() }}] {% endif %} {% if event.failed_check.summary %}
{{ event.failed_check.summary }} {% endif %} {% if event.failed_check.details %}
{{ event.failed_check.details.replace("\n", "
") }}
{% endif %}
{{ severity_symbol(event.failed_check.severity) }} 🌐 {% set query_dict = {event.query.request.method + " " + event.query.request.url_hostname + " " + str(event.query.response.status_code): event.query} %} {% set query_id = "e" + str(event.event_index) + "query" %} {{ explorer_content(query_id, query_dict) }} {% set collapsible.queries = collapsible.queries + [query_id] %} 🌐📓 {{ event.note.key }}: {{ event.note.message }} ???Render error: unknown event type
{{ event.event_index }} 📓 {{ event.note.key }}: {{ event.note.message }}
{% if test_scenario.execution_error %}

{{ test_scenario.execution_error.type }} at {{ test_scenario.execution_error.timestamp }}

Message: {{ test_scenario.execution_error.message }}

Stack trace:

{{ test_scenario.execution_error.stacktrace }}

{% endif %}
{{ explorer_footer(collapsible.queries) }}