{% extends "layout.html" %} {% block nav %} {% endblock %} {% block content %} {% for step in steps %} {% set step_name = step['keyword'] + ' ' + escape(step['name']) %} {% if step['substep'] %} {% set step_prefix = " ⤷" %} {% else %} {% set step_prefix = "" %} {% endif %} {% if step['result'] is defined %} {% set step_status = step['result']['status'] %} {% if step['result']['status'] == 'skipped' %} {% set step_status = 'untested' %} {% endif %} {% if step['result']['status'] in ('failed', 'passed') and step["result"]["timestamp"] %} {% set step_timing = "{} for {:.3f}s".format(step["result"]["timestamp"].strftime("%H:%M:%S"), step["result"]["duration"]) %} {% set step_start = step["result"]["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'] %} {% endif %} {% if step['result'] 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']) }}
{% endif %} {% if step['table'] %}
{{ escape(step['table']) }}
{% endif %}
{% if step['result']['stdout'] %}

stdout ({{ step['result']['stdout']|length }} lines)

{{ escape("\n".join(step['result']['stdout'])) }}
{% endif %} {% if step['result']['stderr'] %}

stderr ({{ step['result']['stderr']|length }} lines)

{{ escape("\n".join(step['result']['stderr'])) }}
{% endif %} {% if step['images'] %}

images ({{ step['images']|length }} images)

{% for image in step['images'] %} {{ image["label"] }} {% endfor %} {% endif %} {% if step['result']['error_message'] %}

error message ({{ step['result']['error_message']|length }} lines)

{{ escape("\n".join(step['result']['error_message'])) }}
{% endif %} {% if step['result']['browser_logs'] %}

browser logs ({{ step['result']['browser_logs']|length }} lines)

{{ escape("\n".join(step['result']['browser_logs'])) }}
{% endif %} {% if step['result']['debug_output'] %}

debug output ({{ step['result']['debug_output']|length }} lines)

{{ escape("\n".join(step['result']['debug_output'])) }}
{% endif %}
{% endblock %}