{% for config, result in results.items() %}

DUT Config {{config}}

{% for setup_name, test_setup in result['test_setups'].items() %} {% set tcp_throughput_1 = test_setup['results']['sta1_throughput_max_dl'] %} {% set udp_throughput_1 = test_setup['results']['sta1_throughput'] %} {% if tcp_throughput_1 is not none %} {% set plot_section = "#plot_" + setup_name.replace('-', ' ').replace('_', ' ') %} {% else %} {% endif %} {% if 'sta2_throughput_max_dl' in test_setup['results'] %} {% set tcp_throughput_2 = test_setup['results']['sta2_throughput_max_dl'] %} {% set udp_throughput_2 = test_setup['results']['sta2_throughput'] %} {% if tcp_throughput_2 is not none %} {% else %} {% endif %} {% elif 'sta3_throughput_max_dl' in test_setup['results'] %} {% set tcp_throughput_3 = test_setup['results']['sta3_throughput_max_dl'] %} {% set udp_throughput_3 = test_setup['results']['sta3_throughput'] %} {% if tcp_throughput_3 is not none %} {% else %} {% endif %} {% endif %} {% if 'sta2_throughput_max_dl' in test_setup['results'] %} {% if tcp_throughput_1 is not none and tcp_throughput_2 is not none %} {% else %} {% endif %} {% elif 'sta3_throughput_max_dl' in test_setup['results'] %} {% if tcp_throughput_1 is not none and tcp_throughput_3 is not none %} {% else %} {% endif %} {% endif %} {% endfor %}
Setup STA TCP Max Throughput (Mbps) UDP Transmitted Throughput (Mbps) UDP Measured Throughput (Mbps) UDP Expected Throughput (Mbps) Result
{{setup_name.replace('-', ' ').replace('_', ' ')}} STA1{{ (tcp_throughput_1 / 1e6)|round(2) }} {{ (test_setup['results']['sta1_udp_transmission_rate'] / 1e6)|round(2) }} {{ (udp_throughput_1/ 1e6)|round(2) }} {{ ((tcp_throughput_1 * 0.45) / 1e6)|round(2) }} {% if test_setup["status"]["sta1_throughput_max_dl"]["passed"] %} {% else %} {% endif %}
STA2{{ (tcp_throughput_2/ 1e6)|round(2) }} {{ (test_setup['results']['sta2_udp_transmission_rate'] / 1e6)|round(2) }} {{ (udp_throughput_2 / 1e6)|round(2) }} {{ ((tcp_throughput_2* 0.45) / 1e6)|round(2) }} {% if test_setup["status"]["sta2_throughput_max_dl"]["passed"] %} {% else %} {% endif %}
STA3{{ (tcp_throughput_3 / 1e6)|round(2) }} {{ (test_setup['results']['sta3_udp_transmission_rate'] / 1e6)|round(2) }} {{ (udp_throughput_3 / 1e6)|round(2) }} {{ ((tcp_throughput_3 * 0.45) / 1e6)|round(2) }} {% if test_setup["status"]["sta3_throughput_max_dl"]["passed"] %} {% else %} {% endif %}
STA1+2 {{ ((udp_throughput_1 + udp_throughput_2) / 1e6)|round(2) }} {{ (test_setup['results']['expected_throughput'] / 1e6)|round(2) }} {% if test_setup["status"]["total_throughput"]["passed"] %} {% else %} {% endif %}
STA1+3 {{ ((udp_throughput_1 + udp_throughput_3) / 1e6)|round(2) }} {{ ((test_setup['results']['expected_throughput']) / 1e6)|round(2) }} {% if test_setup["status"]["total_throughput"]["passed"] %} {% else %} {% endif %}
{% for setup_name, setup in result["test_setups"].items() %}

{{setup_name.replace('-', ' ').replace('_', ' ')}}

Test Status

{% if not setup["status"]["passed"] %}

FAIL

{% for cause in setup["status"]["failure_causes"] %}

{{cause}}

{% endfor %} {% else %}

PASS

{% endif %} {% if setup["results"]["sta1_throughput_max_dl"] is not none %} {{setup["plot"]}} {% else %} {% for error in setup["status"]["error_log"] %}

{{error}}

{% endfor %} {% endif %} {% endfor %} {% endfor %}