Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
040afd48
Commit
040afd48
authored
Nov 21, 2016
by
ROBERT Benoit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing template files for HTML report generation
parent
0b1050c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
229 additions
and
0 deletions
+229
-0
cmake_targets/autotests/templates/index.html
cmake_targets/autotests/templates/index.html
+87
-0
cmake_targets/autotests/templates/testcase_report.html
cmake_targets/autotests/templates/testcase_report.html
+142
-0
No files found.
cmake_targets/autotests/templates/index.html
0 → 100644
View file @
040afd48
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
OAI5G UE Autotest Report
</title>
<script
type=
"text/javascript"
>
function
showhide
(
id
)
{
var
e
=
document
.
getElementById
(
id
);
e
.
style
.
display
=
(
e
.
style
.
display
==
'
block
'
)
?
'
none
'
:
'
block
'
;
}
</script>
</head>
<style>
table
,
th
,
td
{
border
:
1px
solid
black
;
border-collapse
:
collapse
;
padding
:
5px
;
}
</style>
<body>
<center>
<h2>
OAI5G UE Autotest Report
</h2>
</center>
<p>
<table
border
>
<caption>
Test session configuration
</caption>
<tr><td>
Start time
</td><td>
{{test_session_start_time}}
</td></tr>
<tr><td>
Stop time
</td><td>
{{test_session_stop_time}}
</td></tr>
<tr><td>
Duration
</td><td>
{{test_session_duration}}
</td></tr>
<tr><td>
MTC host
</td><td>
{{mtc_host}}
</td></tr>
<tr><td>
User
</td><td>
{{user}}
</td></tr>
<tr><td>
Password
</td><td>
{{password}}
</td></tr>
</table>
</p>
<h3>
Test Setup
</h3>
To be complete
<br></br>
<h3>
UE phy-test performances tests results
</h3>
<h4>
Objectives
</h4>
<p>
Checks that OAI UE can achieve at least 75 percent of the theoretical throughput.
</p>
<p>
Tests are done for all MCS (0 to 28) for 5MHz and 10MHz bandwidth.
</p>
<h4>
Results
</h4>
<table>
<TR><TH>
ID
</TH><TH>
TAG
</TH><TH>
VERDICT
</TH><TH>
NB RUNS
</TH><TH>
PASS
</TH><TH>
FAILED
</TH><TH>
INCON
</TH><TH>
SKIPPED
</TH><TH>
SEG FAULT
</TH><TH>
TC Timeout
</TH><TH>
Start
</TH><TH>
Stop
</TH><TH>
Duration
</TH><TH>
Details
</TH></TR>
{% for result in test_results|sort(attribute='testcase_name') %}
<TR>
<TD
>
{{result.testcase_name}}
</TD>
<TD
align=
"right"
>
{{result.tags}}
</TD>
{% if result.testcase_verdict == "PASS" %}
<TD
align=
"center"
style=
"background-color:green"
>
{{result.testcase_verdict}}
</TD>
{% elif result.testcase_verdict == "FAIL" %}
<TD
align=
"center"
style=
"background-color:red"
>
{{result.testcase_verdict}}
</TD>
{% else %}
<TD
align=
"center"
style=
"background-color:orange"
>
{{result.testcase_verdict}}
</TD>
{% endif %}
<TD
align=
'center'
>
{{result.nruns}}
</TD>
<TD
align=
'center'
>
{{result.nb_run_pass}}
</TD>
<TD
align=
'center'
>
{{result.nb_run_failed}}
</TD>
<TD
align=
'center'
>
{{result.nb_run_inc}}
</TD>
<TD
align=
'center'
>
{{result.nb_run_skip}}
</TD>
<TD
align=
'center'
>
{{result.nb_seg_fault}}
</TD>
<TD
>
{{result.testcase_timeout}}
</TD>
<TD
>
{{result.testcase_time_start.strftime('%Y-%m-%d %H:%M:%S')}}
</TD>
<TD
>
{{result.testcase_time_stop.strftime('%Y-%m-%d %H:%M:%S')}}
</TD>
<TD
>
{{result.testcase_duration}}
</TD>
<TD
><a
href=
"{{ result.testcase_name }}/{{ result.testcase_name }}_report.html"
>
{{ result.testcase_name }}_report.html
</a></TD>
</TR>
{% endfor %}
</table>
<br></br>
<h3>
UE phy-test stability tests results
</h3>
<h4>
Objectives
</h4>
<p>
To be complete
</p>
<h4>
Results
</h4>
To be complete
</table>
</body>
</html>
cmake_targets/autotests/templates/testcase_report.html
0 → 100644
View file @
040afd48
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
OAI5G UE test case report
</title>
<script
type=
"text/javascript"
>
function
showhide
(
id
)
{
var
e
=
document
.
getElementById
(
id
);
e
.
style
.
display
=
(
e
.
style
.
display
==
'
block
'
)
?
'
none
'
:
'
block
'
;
}
</script>
</head>
<style>
table
,
th
,
td
{
border
:
1px
solid
black
;
border-collapse
:
collapse
;
padding
:
5px
;
}
</style>
<body>
<center>
<h2>
OAI5G UE test case report details
</h2>
</center>
<h3>
Test Case description
</h3>
<p>
<table
border
>
<tr><td>
ID
</td><td>
{{testcase_name}}
</td></tr>
<tr><td>
TAG
</td><td>
{{tags}}
</td></tr>
<tr><td>
class
</td><td>
{{testcaseclass}}
</td></tr>
<tr><td>
description
</td><td></td></tr>
<tr><td>
timeout
</td><td>
{{testcase_timeout}}
</td></tr>
<tr><td>
number of runs
</td><td>
{{nruns}}
</td></tr>
<tr><td>
eNB machine
</td><td>
{{testcase_eNBMachine}}
</td></tr>
<tr><td>
UE machine
</td><td>
{{testcase_UEMachine}}
</td></tr>
</table>
</p>
<h3>
Test Case execution
</h3>
<p>
<table
border
>
<tr><td>
testcase_time_start
</td><td>
{{testcase_time_start}}
</td></tr>
<tr><td>
testcase_time_stop
</td><td>
{{testcase_time_stop}}
</td></tr>
<tr><td>
testcase_duration
</td><td>
{{testcase_duration}}
</td></tr>
<tr><td>
Nb runs
</td><td>
{{nruns}}
</td></tr>
<tr><td>
Nb PASS
</td><td>
{{nb_run_pass}}
</td></tr>
<tr><td>
Nb FAILED
</td><td>
{{nb_run_failed}}
</td></tr>
<tr><td>
Nb INCONCLUSIVE
</td><td>
{{nb_run_inc}}
</td></tr>
<tr>
<td>
testcase_verdict
</td>
{% if testcase_verdict == "PASS" %}
<TD
align=
"center"
style=
"background-color:green"
>
{{testcase_verdict}}
</TD>
{% elif testcase_verdict == "FAIL" %}
<TD
align=
"center"
style=
"background-color:red"
>
{{testcase_verdict}}
</TD>
{% else %}
<TD
align=
"center"
style=
"background-color:orange"
>
{{testcase_verdict}}
</TD>
{% endif %}
</tr>
<tr><td>
Nb Seg Fault
</td><td>
{{nb_seg_fault}}
</td></tr>
</table>
</p>
<h3>
Test Case runs results
</h3>
{% for run_results in runs_results|sort(attribute='run_id') %}
<h4>
RUN {{run_results.run_id}}
</h4>
<table
border
>
<tr><td>
run_start_time
</td><td>
{{run_results.run_start_time}}
</td></tr>
<tr><td>
run_stop_time
</td><td>
{{run_results.run_stop_time}}
</td></tr>
<tr><td>
run_duration
</td><td>
{{run_results.run_duration}}
</td></tr>
<tr>
<td>
run_verdict
</td>
{% if run_results.run_verdict == "PASS" %}
<TD
align=
"center"
style=
"background-color:green"
>
{{run_results.run_verdict}}
</TD>
{% elif run_results.run_verdict == "FAIL" %}
<TD
align=
"center"
style=
"background-color:red"
>
{{run_results.run_verdict}}
</TD>
{% else %}
<TD
align=
"center"
style=
"background-color:orange"
>
{{run_results.run_verdict}}
</TD>
{% endif %}
</tr>
<tr><td>
Seg Fault Satus
</td>
{% if run_results.ue_seg_fault_status == "NO_SEG_FAULT" %}
<TD
align=
"center"
style=
"background-color:green"
>
{{run_results.ue_seg_fault_status}}
</TD>
{% elif run_results.ue_seg_fault_status == "SEG_FAULT" %}
<TD
align=
"center"
style=
"background-color:red"
>
{{run_results.ue_seg_fault_status}}
</TD>
{% else %}
<TD
align=
"center"
style=
"background-color:orange"
>
unknown
</TD>
{% endif %}
</tr>
</table>
{% for run_metrics in run_results.runs_metrics %}
<br></br>
<table
border
>
<tr><td>
metric_id
</td><td>
{{run_metrics.metric_id}}
</td></tr>
<tr><td>
Description
</td><td>
{{run_metrics.metric_desc}}
</td></tr>
<tr><td>
Unit of measure
</td><td>
{{run_metrics.metric_uom}}
</td></tr>
<tr><td>
metric_min
</td><td>
{{run_metrics.metric_min}}
</td></tr>
<tr><td>
metric_max
</td><td>
{{run_metrics.metric_max}}
</td></tr>
<tr><td>
metric_mean
</td><td>
{{run_metrics.metric_mean}}
</td></tr>
<tr><td>
metric_median
</td><td>
{{run_metrics.metric_median}}
</td></tr>
<tr><td
colspan=
"2"
></td></tr>
{% if run_metrics.pass_fail_stat is defined %}
<tr><td>
Pass/fail stat
</td><td>
{{run_metrics.pass_fail_stat}}
</td></tr>
{% endif %}
{% if run_metrics.pass_fail_min_limit is defined %}
<tr><td>
Pass/fail min limit
</td><td>
{{run_metrics.pass_fail_min_limit}}
</td></tr>
{% endif %}
{% if run_metrics.pass_fail_max_limit is defined %}
<tr><td>
Pass/fail max limit
</td><td>
{{run_metrics.pass_fail_max_limit}}
</td></tr>
{% endif %}
<tr><td
colspan=
"2"
></td></tr>
<tr><td>
metric_fig
</td><td><IMG
src=
{{run_metrics.metric_fig}}
></td></tr>
</table>
{% endfor %}
{% if run_results.run_traffic.traffic_count != 0 %}
<br></br>
<table
border
>
<TR><TH>
Iperf metric
</TH><TH>
min
</TH><TH>
max
</TH><TH>
mean
</TH><TH>
median
</TH><TR>
<TR><td>
Bandwidth
</td><td>
{{run_results.run_traffic.bw_min}}
</td><td>
{{run_results.run_traffic.bw_max}}
</td><td>
{{run_results.run_traffic.bw_mean}}
</td><td>
{{run_results.run_traffic.bw_median}}
</td><TR>
<TR><td>
Jitter
</td><td>
{{run_results.run_traffic.jitter_min}}
</td><td>
{{run_results.run_traffic.jitter_max}}
</td><td>
{{run_results.run_traffic.jitter_mean}}
</td><td>
{{run_results.run_traffic.jitter_median}}
</td><TR>
<TR><td>
Loss rate
</td><td>
{{run_results.run_traffic.rl_min}}
</td><td>
{{run_results.run_traffic.rl_max}}
</td><td>
{{run_results.run_traffic.rl_mean}}
</td><td>
{{run_results.run_traffic.rl_median}}
</td><TR>
<TR><td
colspan=
"5"
></td></TR>
<TR><td>
Iperf duration
</td><td>
{{run_results.run_traffic.iperf_duration}}
</td><td></td><td>
Pass/Fail criteria (min duration)
</td><td>
{{run_results.run_traffic.dur_pass_fail_crit}}
</td><TR>
<TR><td
colspan=
"5"
></td></TR>
<tr><td>
traffic_fig
</td><td
colspan=
"4"
><IMG
src=
{{run_results.run_traffic.traffic_fig}}
></td></tr>
</table>
{% endif %}
{% endfor %}
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment