diff options
author | Soumendu Sekhar Acharya <sa00498080@techmahindra.com> | 2018-08-01 17:21:15 +0530 |
---|---|---|
committer | Soumendu Sekhar Acharya <SA00498080@techmahindra.com> | 2018-08-24 12:55:16 +0000 |
commit | 929c1f13697f338245571694beb73adbd39a5b78 (patch) | |
tree | 4ece0941e34c012407565aa01b34235be93688ad /SdncReports/SdncReportsApi/src/main/resources/static/form-viewReport.html | |
parent | cc49cb7753ff820dada996ab1d56263243630395 (diff) |
SDN-C support&provide network layer tests Using IP
SDNC-252,SDNC-253,SDNC-264,SDNC-266 are added as part of this story
Change-Id: Ic65ca32c4786fac1be9269dbc6a2162b433f0630
Issue-ID: SDNC-264
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
Former-commit-id: d90280efcad173fd2250b8e2e98cb8f480007657
Diffstat (limited to 'SdncReports/SdncReportsApi/src/main/resources/static/form-viewReport.html')
-rw-r--r-- | SdncReports/SdncReportsApi/src/main/resources/static/form-viewReport.html | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/SdncReports/SdncReportsApi/src/main/resources/static/form-viewReport.html b/SdncReports/SdncReportsApi/src/main/resources/static/form-viewReport.html new file mode 100644 index 00000000..ac6b86ee --- /dev/null +++ b/SdncReports/SdncReportsApi/src/main/resources/static/form-viewReport.html @@ -0,0 +1,129 @@ +<!-- /* + * ============LICENSE_START======================================================= + * ONAP : SDNC-FEATURES + * ================================================================================ + * Copyright 2018 TechMahindra + *================================================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + --> +<div class="ReportMain" style="height:auto ;"> + <div class="heading"><img src="images/search.png" width=30 height="30" style="margin-left:5px;"> Search For Historical Test Reports</div> + <form name="myForm"> + <div class="row"> + <div role="alert" style="margin-left:20px;margin-bottom:5px;"> + <button class="btn btn-danger ReportNotification" ng-show="showError"><img src="images/error.png" width=25 height="25" class="ReportImgIcon">{{errorMessage}}</button> + <button class="btn btn-success ReportNotification" ng-show="showSuccess"><img src="images/success.png" width=30 height="30" class="ReportImgIcon">{{successMessage}}</button> + <button class="btn btn-warning ReportNotification" ng-show="showWarning"><img src="images/waning.png" width=35 height="25" class="ReportImgIcon">{{warningMessage}}</button> + </div> + <div class="column" style="background-color:#f2f2f2;width:40%;"> + <label for="exampleInput" class="labeltext">Start Date</label> + <input type="date" id="exampleInput" name="input" ng-model="startdate.value" + placeholder="yyyy-MM-dd" style="margin-left:75px;width:170px;" required/> + <div role="alert"> + <span class="error" ng-show="myForm.input.$error.required"> + Required!</span> + <span class="error" ng-show="myForm.input.$error.date"> + Not a valid date!</span> + </div> + </div> + <div class="column" style="background-color:#f2f2f2;margin-left:0px;width:50%;"> + <label for="exampleEndInput" class="labeltext">End Date</label> + <input type="date" id="exampleEndInput" name="enddate" ng-model="enddate.value" + placeholder="yyyy-MM-dd" style="width:170px;" required/> + <div role="alert"> + <span class="error" ng-show="myForm.input.$error.required"> + Required!</span> + <span class="error" ng-show="myForm.input.$error.date"> + Not a valid date!</span> + </div> + </div> + </div> + <div class="row"> + <div class="column" style="background-color:#f2f2f2;width:90%;"> + <label class="labeltext">Specify Device IP</label> + <input type="text" ng-model="deviceIP" name="text" style="margin-left:25px;width:170px;" required></input> + <div role="alert"> + <span class="error" ng-show="myForm.text.$error.required"> + Required!</span> + <span class="error" ng-show="myForm.text.$error.date"> + Not a valid date!</span> + </div> + </div> + </div> + <div class="row"> + <input type="submit" id="btnSubmit" ng-click="getReports(deviceIP,startdate.value,enddate.value)" style="width:120px;"></input> + </div> + <table class="tableDisplay" ng-show="ShowResult" id="tableToExport"> + <tr class="first_row"> + <th>SNo. + </th> + <th colspan="2" style="text-align:center;">TestName + </th> + <th>DeviceIP + </th> + <th>Timestamp + </th> + <th>Status + </th> + <th style="width:20%;">Statistics (%Loss)</th> + <th style="width:20%;">Average Time (ms)</th> + <th colspan="2" style="text-align:center;">Result + </th> + </tr> + <tr dir-paginate="test in objTestModel | itemsPerPage: 4"> + <td>{{$index+1}} + </td> + <td><img src="{{(test.testname=='Network Layer') ? 'images/images.png': 'images/protocol.png'}}" width=40 height=30 ></img></td> + <td>{{test.testname}} + </td> + <td>{{test.deviceIP}} + </td> + <td>{{test.timeStamp}} + </td> + <td>{{test.executionDetails.status | uppercase}} + </td> + <td>{{test.executionDetails.statistics}} + </td> + </td> + <td>{{test.executionDetails.avgTime}} + </td> + <td>{{test.result}}</td> + <td><img src="{{(test.result=='pass'||'reachable') ? 'images/success.png': 'images/FailImage.png'}}" width=30 height=25></img> + </tr> + </table> + </form> + + <div class="row"> + <div class="column"> + <dir-pagination-controls ng-show="pagination" + max-size="5" + direction-links="true" + boundary-links="true" > + </dir-pagination-controls> + </div> + <div class="column" style="margin-top:10px;" ng-show="ShowResult"> + <span class='arrowRed'>→</span> + <label class="labeltext">UnReachable</label> + <span class='arrowGreen'>→</span> + <label class="labeltext">Reachable</label> + </div> + </div> + <div class="row"> + <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> + <img src="images/downloadImage.png" width=30 height="30" ng-show="ShowResult" style="margin-left:5px;"> + </div> +</div> +</body> +</html>
\ No newline at end of file |