2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright 2018 TechMahindra
6 *=================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 <div class="ReportMain" style="height:auto ;">
22 <div class="heading"><img src="images/search.png" width=30 height="30" style="margin-left:5px;"> Search For Historical Test Reports</div>
25 <div role="alert" style="margin-left:20px;margin-bottom:5px;">
26 <button class="btn btn-danger ReportNotification" ng-show="showError"><img src="images/error.png" width=25 height="25" class="ReportImgIcon">{{errorMessage}}</button>
27 <button class="btn btn-success ReportNotification" ng-show="showSuccess"><img src="images/success.png" width=30 height="30" class="ReportImgIcon">{{successMessage}}</button>
28 <button class="btn btn-warning ReportNotification" ng-show="showWarning"><img src="images/waning.png" width=35 height="25" class="ReportImgIcon">{{warningMessage}}</button>
30 <div class="column" style="background-color:#f2f2f2;width:40%;">
31 <label for="exampleInput" class="labeltext">Start Date</label>
32 <input type="date" id="exampleInput" name="input" ng-model="startdate.value"
33 placeholder="yyyy-MM-dd" style="margin-left:75px;width:170px;" required/>
35 <span class="error" ng-show="myForm.input.$error.required">
37 <span class="error" ng-show="myForm.input.$error.date">
38 Not a valid date!</span>
41 <div class="column" style="background-color:#f2f2f2;margin-left:0px;width:50%;">
42 <label for="exampleEndInput" class="labeltext">End Date</label>
43 <input type="date" id="exampleEndInput" name="enddate" ng-model="enddate.value"
44 placeholder="yyyy-MM-dd" style="width:170px;" required/>
46 <span class="error" ng-show="myForm.input.$error.required">
48 <span class="error" ng-show="myForm.input.$error.date">
49 Not a valid date!</span>
54 <div class="column" style="background-color:#f2f2f2;width:90%;">
55 <label class="labeltext">Specify Device IP</label>
56 <input type="text" ng-model="deviceIP" name="text" style="margin-left:25px;width:170px;" required></input>
58 <span class="error" ng-show="myForm.text.$error.required">
60 <span class="error" ng-show="myForm.text.$error.date">
61 Not a valid date!</span>
66 <input type="submit" id="btnSubmit" ng-click="getReports(deviceIP,startdate.value,enddate.value)" style="width:120px;"></input>
68 <table class="tableDisplay" ng-show="ShowResult" id="tableToExport">
69 <tr class="first_row">
72 <th colspan="2" style="text-align:center;">TestName
80 <th style="width:20%;">Statistics (%Loss)</th>
81 <th style="width:20%;">Average Time (ms)</th>
82 <th colspan="2" style="text-align:center;">Result
85 <tr dir-paginate="test in objTestModel | itemsPerPage: 4">
88 <td><img src="{{(test.testname=='Network Layer') ? 'images/images.png': 'images/protocol.png'}}" width=40 height=30 ></img></td>
93 <td>{{test.timeStamp}}
95 <td>{{test.executionDetails.status | uppercase}}
97 <td>{{test.executionDetails.statistics}}
100 <td>{{test.executionDetails.avgTime}}
102 <td>{{test.result}}</td>
103 <td><img src="{{(test.result=='pass'||'reachable') ? 'images/success.png': 'images/FailImage.png'}}" width=30 height=25></img>
110 <dir-pagination-controls ng-show="pagination"
112 direction-links="true"
113 boundary-links="true" >
114 </dir-pagination-controls>
116 <div class="column" style="margin-top:10px;" ng-show="ShowResult">
117 <span class='arrowRed'>→</span>
118 <label class="labeltext">UnReachable</label>
119 <span class='arrowGreen'>→</span>
120 <label class="labeltext">Reachable</label>
124 <button type="button" ng-csv="objTestModel" class="btndownload" ng-show="ShowResult" filename="fileName.csv" csv-column-order="csvOrder" csv-header="['TestName','DeviceIP','TimeStamp','Status','Statistics','AvgTime','Result']">Download</button>
125 <img src="images/downloadImage.png" width=30 height="30" ng-show="ShowResult" style="margin-left:5px;">