aboutsummaryrefslogtreecommitdiffstats
path: root/test/onaptests_bench/src/onaptests_bench/templates/onaptests_bench.html.j2
blob: 154bed285c4a4b88713d305c12c083e25dd85de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{% extends "base.html.j2" %}
{% block title %}ONAPTEST Bench{% endblock %}

{% block content %}
<h1 class="title is-1">ONAPTEST Bench</h1>
<section class="section">
 <div class="container">
 <h3 class="subtitle">{{ info.usecase_name }}</h3>

 <div class="block">
  <div class="box">
      Number of tests: {{ info.nb_tests }} <br>
      Global success rate: {{ info.global_success_rate }} % <br>
      Number of simultaneous tests: {{ info.nb_simu_tests }} <br>
      Test duration: {{ info.test_duration }} m <br>
      Number of executed series: {{ info.nb_series }} <br>
      Min duration: {{ info.min_duration}} <br>
      Max duration: {{ info.max_duration}} <br>
      Mean duration: {{ info.mean_duration}} <br>
  </div>
</div>

<div class="columns">
 <div class="column">
 <figure class="image">
   <img src="./rate_mygraph.png">
 </figure>
 </div>
  <div class="column">
  <figure class="image">
    <img src="./bar_mygraph.png">
  </figure>
  </div>
  <div class="column">
  <figure class="image">
    <img src="./mygraph.png">
  </figure>
  </div>
  <div class="column">
  <figure class="image">
    <img src="./histo_mygraph.png">
  </figure>
  </div>
</div>

<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
  <thead>
    <tr>
      <th><center>Serie</center></th>
      <th><center>Success Rate</center></th>
      <th><center>Min</center></th>
      <th><center>Max</center></th>
      <th><center>Mean</center></th>
      <th><center>Median</center></th>
    </tr>
  </thead>

  <tbody>

  {% for serie in data %}
  <tr {% if serie.success_rate >= 80 %} class="has-background-success-light" {%elif serie.success_rate > 0 %} class="has-background-warning-light"  {% else %} class="has-background-danger-light" {% endif %}>
    <td><center>{{ serie.serie_id }}</center></td>
    <td><center>{{ serie.success_rate }}%</center></td>
    <td><center>{{ serie.min }}</center></td>
    <td><center>{{ serie.max }}</center></td>
    <td><center>{{ serie.mean }}</center></td>
    <td><center>{{ serie.median }}</center></td>
  <tr>
  {% endfor %}
  </tbody>
  </table>

</div>

</section>

{% endblock %}
</div>
</section>