4 <!-- Bootstrap core CSS -->
5 <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
6 <link href="../../css/default.css" rel="stylesheet">
7 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
8 <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
9 <script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
10 <script type="text/javascript" src="../../js/gauge.js"></script>
11 <script type="text/javascript" src="../../js/trend.js"></script>
13 function onDocumentReady() {
15 {% for scenario in scenario_results.keys() -%}
16 var gaugeScenario{{loop.index}} = gauge('#gaugeScenario{{loop.index}}');
18 // assign success rate to the gauge
19 function updateReadings() {
20 {% for scenario in scenario_results.keys() -%}
21 gaugeScenario{{loop.index}}.update({{scenario_results[scenario].getScorePercent()}});
27 // trend line management
28 d3.csv("./scenario_history.txt", function(data) {
29 // ***************************************
30 // Create the trend line
31 {% for scenario in scenario_results.keys() -%}
32 // for scenario {{scenario}}
34 var trend{{loop.index}} = data.filter(function(row) {
35 return row["scenario"]=="{{scenario}}" && row["installer"]=="{{installer}}";
38 trend{{loop.index}}.forEach(function(d) {
39 d.date = parseDate(d.date);
42 // Draw the trend line
43 var mytrend = trend("#trend_svg{{loop.index}}",trend{{loop.index}})
44 // ****************************************
47 if ( !window.isLoaded ) {
48 window.addEventListener("load", function() {
55 <script type="text/javascript">
56 $(document).ready(function (){
57 $(".btn-more").click(function() {
59 $(this).parent().find(".panel-default").show();
65 <div class="container">
66 <div class="masthead">
67 <h3 class="text-muted">Bottlenecks status page ({{version}}, {{date}})</h3>
69 <ul class="nav nav-justified">
70 <li class="active"><a href="http://testresults.opnfv.org/reporting/index.html">Home</a></li>
71 <li><a href="status-apex.html">Apex</a></li>
72 <li><a href="status-compass.html">Compass</a></li>
73 <li><a href="status-fuel.html">Fuel</a></li>
74 <li><a href="status-joid.html">Joid</a></li>
79 <div class="col-md-1"></div>
80 <div class="col-md-10">
81 <div class="page-header">
82 <h2>{{installer}}</h2>
84 <div><h1>Reported values represent the percentage of completed
86 CI tests (posca_factor_ping) during the reporting period, where results
88 were communicated to the Test Database.</h1></div>
89 <div class="scenario-overview">
90 <div class="panel-heading"><h4><b>List of last scenarios ({{version}}) run over the last {{period}} days </b></h4></div>
93 <th width="40%">Scenario</th>
94 <th width="20%">Status</th>
95 <th width="20%">Trend</th>
96 <th width="10%">Last 4 Iterations</th>
97 <th width="10%">Last 10 Days</th>
99 {% for scenario,result in scenario_results.iteritems() -%}
101 <td><a href="{{scenario_results[scenario].getLastUrl()}}">{{scenario}}</a></td>
102 <td><div id="gaugeScenario{{loop.index}}"></div></td>
103 <td><div id="trend_svg{{loop.index}}"></div></td>
104 <td>{{scenario_results[scenario].getFourDaysScore()}}</td>
105 <td>{{scenario_results[scenario].getTenDaysScore()}}</td>
113 <div class="col-md-1"></div>