summaryrefslogtreecommitdiffstats
path: root/gui/app/views/report.html
blob: 78ac6a0c94194839d9f41760172ba0a103ce8672 (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
<div class="content">
    <i class="fa fa-arrow-left fa-1x" aria-hidden="true" style="color: #999;cursor:pointer" ng-click="goBack()">Back</i>
    <h3>Yardstick Report </h3>
    <hr/>
    <div>

        <div>Task ID : {{result.result.task_id}} </div>
        <div style="margin-top:5px;">Criteria :
            <font style="color:#2ECC71" ng-show="result.result.criteria=='PASS'"> {{result.result.criteria}}</font>
            <font style="color:red" ng-show="result.result.criteria=='FAIL'"> {{result.result.criteria}}</font>
        </div>
        <hr/>
        <caption>Information</caption>
        <table class="table table-striped">
            <tr>
                <th>#</th>
                <th>key</th>
                <th>value</th>
            </tr>
            <tbody>
                <tr ng-repeat="(key,value) in  result.result.info">
                    <td>{{$index}}</td>
                    <td>{{key}}</td>
                    <td>{{value}}</td>
                </tr>

            </tbody>
        </table>
        <hr/>

        <caption>Test Cases</caption>
        <table class="table table-striped">
            <tr>
                <th>#</th>
                <th>key</th>

                <th>value</th>
                <th>grafana</th>
            </tr>
            <tbody>
                <tr ng-repeat="(key,value) in result.result.testcases">
                    <td>{{$index}}</td>
                    <td>{{key}}</td>

                    <td>{{value.criteria}}</td>
                    <td> <button class="btn btn-default btn-sm" ng-click="goToExternal(key)"> grafana</button></td>
                </tr>
            </tbody>
        </table>

    </div>
</div>



</div>