{% extends "layout.html" %} {% block nav %} {% endblock %} {% block content %} {% for step in steps %} {% set step_name = step['keyword'] + ' ' + escape(step['name']) %} {% if step['is_substep'] %} {% set step_prefix = " ⤷" %} {% else %} {% set step_prefix = "" %} {% endif %} {% if step is defined %} {% set step_status = step['status'] %} {% if step['status'] == 'skipped' %} {% set step_status = 'untested' %} {% endif %} {% if step['status'] in ('failed', 'passed') and step["timestamp"] %} {% set step_timing = "{} for {:.3f}s".format(step["timestamp"].strftime("%H:%M:%S"), step["duration"]) %} {% set step_start = step["timestamp"] %} {% endif %} {% else %} {% set step_status = 'untested' %} {% set step_timing = "" %} {% set step_start = "" %} {% endif %} {% set step_keyword = step_prefix + step['keyword'].rjust(6, ' ') %} {% if step['heading_level'] %} {% else %} {% endif %} {% if step['text'] or step['table_data'] %} {% endif %} {% if step is defined %} {% endif %} {% endfor %}
Feature: {{ escape(feature['name']) }}
{% if feature['tags'] %} {{ feature['tags'] }}
{% endif %} Scenario: {{ escape(scenario['name']) }}
{{ scenario['tags'] }} {% if scenario['sub_headers'] %}
{{ scenario['sub_headers'] }} {% endif %}
Start Time and Duration (s)
{{ step_timing }}
{% if step['text'] %}
{{ escape(step_text_list_to_html(step['text'])) }}
{% endif %} {% if step['table_data'] %}
{{ escape(step_table_to_html(step['table_data'])) }}
{% endif %}
{% if step['stdout'] %}
stdout ({{ step['stdout']|length }} lines)
{{ escape("\n".join(step['stdout'])) }}
{% endif %} {% if step['stderr'] %}
stderr ({{ step['stderr']|length }} lines)
{{ escape("\n".join(step['stderr'])) }}
{% endif %} {% if step['screenshots'] %}
images ({{ step['screenshots']|length }} images)
{% for image in step['screenshots'] %} {{ escape(image['label']) }} {% if image['highlight'] %}
{% endif %} {% endfor %}
{% endif %} {% if step['error_message'] %}
error message ({{ step['error_message']|length }} lines)
{% for entry in step['error_message'] %}{{ entry }}
{% endfor %}
{% endif %} {% if step['browser_logs'] %}
browser logs ({{ step['browser_logs']|length }} entries)
{% for entry in step['browser_logs'] %}{{ browser_timestamp_to_datetime(entry['timestamp']) }} {{ entry['level'] }} {{ entry['source']}}: {{ entry['message'] }}
{% endfor %}
{% endif %} {% if step['debug_output'] %}
debug output ({{ step['debug_output']|length }} lines)
{{ escape("\n".join(step['debug_output'])) }}
{% endif %}
{% endblock %}