From 040afd4800c4e0e401ab9743a1c5612c65c5bf46 Mon Sep 17 00:00:00 2001
From: ROBERT Benoit
Date: Mon, 21 Nov 2016 16:02:00 +0100
Subject: [PATCH] Add missing template files for HTML report generation
---
cmake_targets/autotests/templates/index.html | 87 +++++++++++
.../autotests/templates/testcase_report.html | 142 ++++++++++++++++++
2 files changed, 229 insertions(+)
create mode 100644 cmake_targets/autotests/templates/index.html
create mode 100644 cmake_targets/autotests/templates/testcase_report.html
diff --git a/cmake_targets/autotests/templates/index.html b/cmake_targets/autotests/templates/index.html
new file mode 100644
index 0000000000..10a15fb53d
--- /dev/null
+++ b/cmake_targets/autotests/templates/index.html
@@ -0,0 +1,87 @@
+
+
+
+
+ OAI5G UE Autotest Report
+
+
+
+
+
+OAI5G UE Autotest Report
+
+
+
+
+ Test session configuration
+ | Start time | {{test_session_start_time}} |
+ | Stop time | {{test_session_stop_time}} |
+ | Duration | {{test_session_duration}} |
+ | MTC host | {{mtc_host}} |
+ | User | {{user}} |
+ | Password | {{password}} |
+
+
+
+
+Test Setup
+To be complete
+
+
+UE phy-test performances tests results
+Objectives
+Checks that OAI UE can achieve at least 75 percent of the theoretical throughput.
+Tests are done for all MCS (0 to 28) for 5MHz and 10MHz bandwidth.
+Results
+
+
+| ID | TAG | VERDICT | NB RUNS | PASS | FAILED | INCON | SKIPPED | SEG FAULT | TC Timeout | Start | Stop | Duration | Details |
+{% for result in test_results|sort(attribute='testcase_name') %}
+
+ | {{result.testcase_name}} |
+ {{result.tags}} |
+ {% if result.testcase_verdict == "PASS" %}
+ {{result.testcase_verdict}} |
+ {% elif result.testcase_verdict == "FAIL" %}
+ {{result.testcase_verdict}} |
+ {% else %}
+ {{result.testcase_verdict}} |
+ {% endif %}
+ {{result.nruns}} |
+ {{result.nb_run_pass}} |
+ {{result.nb_run_failed}} |
+ {{result.nb_run_inc}} |
+ {{result.nb_run_skip}} |
+ {{result.nb_seg_fault}} |
+ {{result.testcase_timeout}} |
+ {{result.testcase_time_start.strftime('%Y-%m-%d %H:%M:%S')}} |
+ {{result.testcase_time_stop.strftime('%Y-%m-%d %H:%M:%S')}} |
+ {{result.testcase_duration}} |
+ {{ result.testcase_name }}_report.html |
+
+{% endfor %}
+
+
+
+
+UE phy-test stability tests results
+Objectives
+To be complete
+Results
+To be complete
+
+
+
+
+
diff --git a/cmake_targets/autotests/templates/testcase_report.html b/cmake_targets/autotests/templates/testcase_report.html
new file mode 100644
index 0000000000..007ab56909
--- /dev/null
+++ b/cmake_targets/autotests/templates/testcase_report.html
@@ -0,0 +1,142 @@
+
+
+
+
+ OAI5G UE test case report
+
+
+
+
+
+OAI5G UE test case report details
+
+
+Test Case description
+
+
+
+ | ID | {{testcase_name}} |
+ | TAG | {{tags}} |
+ | class | {{testcaseclass}} |
+ | description | |
+ | timeout | {{testcase_timeout}} |
+ | number of runs | {{nruns}} |
+ | eNB machine | {{testcase_eNBMachine}} |
+ | UE machine | {{testcase_UEMachine}} |
+
+
+
+
+
+Test Case execution
+
+
+
+ | testcase_time_start | {{testcase_time_start}} |
+ | testcase_time_stop | {{testcase_time_stop}} |
+ | testcase_duration | {{testcase_duration}} |
+ | Nb runs | {{nruns}} |
+ | Nb PASS | {{nb_run_pass}} |
+ | Nb FAILED | {{nb_run_failed}} |
+ | Nb INCONCLUSIVE | {{nb_run_inc}} |
+
+ | testcase_verdict |
+ {% if testcase_verdict == "PASS" %}
+ {{testcase_verdict}} |
+ {% elif testcase_verdict == "FAIL" %}
+ {{testcase_verdict}} |
+ {% else %}
+ {{testcase_verdict}} |
+ {% endif %}
+
+ | Nb Seg Fault | {{nb_seg_fault}} |
+
+
+
+
+
+
+Test Case runs results
+
+{% for run_results in runs_results|sort(attribute='run_id') %}
+RUN {{run_results.run_id}}
+
+ | run_start_time | {{run_results.run_start_time}} |
+ | run_stop_time | {{run_results.run_stop_time}} |
+ | run_duration | {{run_results.run_duration}} |
+
+ | run_verdict |
+ {% if run_results.run_verdict == "PASS" %}
+ {{run_results.run_verdict}} |
+ {% elif run_results.run_verdict == "FAIL" %}
+ {{run_results.run_verdict}} |
+ {% else %}
+ {{run_results.run_verdict}} |
+ {% endif %}
+
+ | Seg Fault Satus |
+ {% if run_results.ue_seg_fault_status == "NO_SEG_FAULT" %}
+ {{run_results.ue_seg_fault_status}} |
+ {% elif run_results.ue_seg_fault_status == "SEG_FAULT" %}
+ {{run_results.ue_seg_fault_status}} |
+ {% else %}
+ unknown |
+ {% endif %}
+
+
+
+ {% for run_metrics in run_results.runs_metrics %}
+
+
+ | metric_id | {{run_metrics.metric_id}} |
+ | Description | {{run_metrics.metric_desc}} |
+ | Unit of measure | {{run_metrics.metric_uom}} |
+ | metric_min | {{run_metrics.metric_min}} |
+ | metric_max | {{run_metrics.metric_max}} |
+ | metric_mean | {{run_metrics.metric_mean}} |
+ | metric_median | {{run_metrics.metric_median}} |
+ |
+ {% if run_metrics.pass_fail_stat is defined %}
+ | Pass/fail stat | {{run_metrics.pass_fail_stat}} |
+ {% endif %}
+ {% if run_metrics.pass_fail_min_limit is defined %}
+ | Pass/fail min limit | {{run_metrics.pass_fail_min_limit}} |
+ {% endif %}
+ {% if run_metrics.pass_fail_max_limit is defined %}
+ | Pass/fail max limit | {{run_metrics.pass_fail_max_limit}} |
+ {% endif %}
+ |
+ | metric_fig |  |
+
+
+ {% endfor %}
+
+ {% if run_results.run_traffic.traffic_count != 0 %}
+
+
+ | Iperf metric | min | max | mean | median |
|---|
+
| Bandwidth | {{run_results.run_traffic.bw_min}} | {{run_results.run_traffic.bw_max}} | {{run_results.run_traffic.bw_mean}} | {{run_results.run_traffic.bw_median}} |
+
| Jitter | {{run_results.run_traffic.jitter_min}} | {{run_results.run_traffic.jitter_max}} | {{run_results.run_traffic.jitter_mean}} | {{run_results.run_traffic.jitter_median}} |
+
| Loss rate | {{run_results.run_traffic.rl_min}} | {{run_results.run_traffic.rl_max}} | {{run_results.run_traffic.rl_mean}} | {{run_results.run_traffic.rl_median}} |
+
|
+ | Iperf duration | {{run_results.run_traffic.iperf_duration}} | | Pass/Fail criteria (min duration) | {{run_results.run_traffic.dur_pass_fail_crit}} |
+
|
+ | traffic_fig |  |
+
+ {% endif %}
+
+{% endfor %}
+
+
+