blob: 8147f0592303bdea13f0a86b9b2d004f200aa512 [file] [log] [blame]
Skip Wonnell2c977e22018-03-01 08:30:15 -06001<!--
2============LICENSE_START==========================================
3===================================================================
4Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
5===================================================================
6
7Unless otherwise specified, all software contained herein is licensed
8under the Apache License, Version 2.0 (the License);
9you may not use this software except in compliance with the License.
10You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14Unless required by applicable law or agreed to in writing, software
15distributed under the License is distributed on an "AS IS" BASIS,
16WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17See the License for the specific language governing permissions and
18limitations under the License.
19
Skip Wonnell2c977e22018-03-01 08:30:15 -060020============LICENSE_END============================================
21-->
22<simple-notifications [options]="options"></simple-notifications>
Sandeep J77ebde82018-07-20 15:56:31 +053023<ngx-spinner bdColor="rgba(51,51,51,0.8)"
24 size="large"
25 color="orange"
26 loadingText="Uploading test spreadsheet..."
27 type="ball-scale-multiple"></ngx-spinner>
Skip Wonnell2c977e22018-03-01 08:30:15 -060028<ng-progress [positionUsing]="'marginLeft'" [minimum]="0.15" [maximum]="1" [speed]="200" [showSpinner]="false" [direction]="'leftToRightIncreased'" [color]="'#6ab344'"
29 [trickleSpeed]="250" [thick]="true" [ease]="'linear'"></ng-progress>
30
31<div class="card" style=" margin-bottom: 23px;">
32 <div class="card-block" style="border-top: 5px solid #6ab344;border-top-right-radius: 7px;border-top-left-radius: 7px;">
sj108sb694d952018-03-21 21:25:39 +053033 <div class="row" style="padding: 10px 15px">
Skip Wonnell2c977e22018-03-01 08:30:15 -060034 <div class="col-lg-3 col-sm-6 col-md-4 col-xs-12">
35 <label>Action:</label>
36 <input class="form-control" type="text" disabled value="{{action}}" />
37 </div>
38
Skip Wonnell2c977e22018-03-01 08:30:15 -060039 <div class="col-lg-3 col-sm-6 col-md-4 col-xs-12">
40 <label>Vnf Id:</label>
41 <input class="form-control" type="text" [(ngModel)]="this.actionIdentifiers['vnf-id']" />
42
43 </div>
44
45 <div class="col-lg-3 col-sm-6 col-md-4 col-xs-12" *ngIf="this.actionIdentifiers['vserver-id']">
46 <label>Vserver-Id(optional):</label>
47 <input class="form-control" disabled type="text" [(ngModel)]="this.actionIdentifiers['vserver-id']" />
48
49 </div>
sj108sb694d952018-03-21 21:25:39 +053050 </div>
51 <div class="row" style="padding: 10px 15px">
Skip Wonnell2c977e22018-03-01 08:30:15 -060052
53 <div class="col-12">
54 <div class="input-group">
55 <input id="excelInputFile" #myInput1 hidden class="file" type="file" (change)="upload($event)">
56 <input [(ngModel)]="uploadFileName" type="text" class="input-lg" disabled placeholder="Upload SpreadSheet" name="uploadFileName" style="width:80%">
57 <button (click)="excelBrowseOption($event)" [disabled]="!enableBrowse" class="browse mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary input-lg"
58 type="button">Upload SpreadSheet
59 </button>
60 </div>
61 </div>
62
63 </div>
64 </div>
65</div>
66<br>
67
68<div class="card">
69
70 <div class="card-block">
71
72 <div class="row">
73 <div class="col-md-6">
74 <span style="margin-left: 5%"><b>REQUEST:</b></span>
75 </div>
76 <div class="col-md-6">
77 <span style="margin-left: 5%"><b>RESPONSE:</b></span>
78 </div>
79
80 <div class="col-md-6">
81 <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12">
82
83 <div style="height:200px;width:100%;border:solid 2px grey;overflow:scroll;overflow-x:hidden;overflow-y:scroll;">
84 <p style="height:450px;" disabled class="text-center">
85 {{apiRequest}}
86 </p>
87 </div>
88 </div>
89
90 </div>
91
92 <div class="col-md-6">
93 <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12">
94
95 <div style="height:200px;width:100%;border:solid 2px grey;overflow:scroll;overflow-x:hidden;overflow-y:scroll;">
96 <p style="height:450px;" disabled class="text-center">
97 {{apiResponse}}
98 </p>
99 </div>
100 </div>
101
102 </div>
103
104 <div class="col-md-12">
105 <div class="row justify-content-center" style="padding-top:0.3cm">
sj108sb694d952018-03-21 21:25:39 +0530106
107 <button style="margin-left:6%;" [disabled]="!enableTestButton" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary"
108 type="submit" (click)="testVnf()">Execute Test
Skip Wonnell2c977e22018-03-01 08:30:15 -0600109 </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
sj108sb694d952018-03-21 21:25:39 +0530110
Skip Wonnell2c977e22018-03-01 08:30:15 -0600111 </div>
112
113 </div>
114
115 </div>
116
117 </div>
118
119 <div style="padding-left:60%;padding-bottom:0.5cm">
sj108sb694d952018-03-21 21:25:39 +0530120 <button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary" type="button" [disabled]="!enableDownload" (click)="download()">Download Raw Request/Response
Skip Wonnell2c977e22018-03-01 08:30:15 -0600121 </button>
sj108sf27d5542018-04-02 14:46:25 +0530122 <button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" type="button" [disabled]="!enableAbort" (click)="abortTest()">Abandon Test</button>
Skip Wonnell2c977e22018-03-01 08:30:15 -0600123 </div>
124</div>
125<br>
126<div class="card">
127 <div class="card-block">
128
sj108sb694d952018-03-21 21:25:39 +0530129 <div class="mdl-dialog__content" style="border:solid 1px grey;">
Skip Wonnell2c977e22018-03-01 08:30:15 -0600130
131 <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="margin-left: 25%">
132 <input placeholder="Request Id" [(ngModel)]="requestId" class="mdl-textfield__input" id="requestId" required name="requestId">
sj108sb694d952018-03-21 21:25:39 +0530133 </div><br/>
134 <button style="margin-left: 30%" type="submit" [disabled]="!enablePollButton" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary" (click)=pollTestStatus()>Poll Test Status
Skip Wonnell2c977e22018-03-01 08:30:15 -0600135 </button>
sj108sb694d952018-03-21 21:25:39 +0530136 <br/><br/>
Skip Wonnell2c977e22018-03-01 08:30:15 -0600137 <div class="col-md-12">
138 <span style="margin-left: 18.5%"><b>POLL TEST STATUS RESPONSE</b></span>
139 </div>
140
sj108sf27d5542018-04-02 14:46:25 +0530141 <div style="margin-left: 18.5%;height:130px;width:60%;border:solid 2px grey;overflow:scroll;overflow-x:hidden;overflow-y:hidden;">
Skip Wonnell2c977e22018-03-01 08:30:15 -0600142
sj108sb694d952018-03-21 21:25:39 +0530143 <div *ngIf="showStatusResponseDiv">
144 <div *ngIf="enableCounterDiv"><b>Poll test no {{pollCounter}}</b></div>
Skip Wonnell2c977e22018-03-01 08:30:15 -0600145 <table>
146 <thead></thead>
147 <tbody>
148 <tr>
149 <td>
150 <div class="android-title mdl-layout-title">TimeStamp :</div>
151 </td>
152 <td>
153 <div class="android-title mdl-layout-title">{{outputTimeStamp}}</div>
154 </td>
155 </tr>
156 <tr>
157 <td>
158 <div class="android-title mdl-layout-title">Status :</div>
159 </td>
160 <td>
161 <div class="android-title mdl-layout-title">{{status}}</div>
162 </td>
163 </tr>
164 <tr>
165 <td>
166 <div class="android-title mdl-layout-title">Status Reason:</div>
167 </td>
168 <td>
169 <div class="android-title mdl-layout-title">{{statusReason}}</div>
170 </td>
171 </tr>
172 </tbody>
173 </table>
174 </div>
175 <div *ngIf="!showStatusResponseDiv">
sj108sb694d952018-03-21 21:25:39 +0530176 <div *ngIf="enableCounterDiv"><b>Poll test no {{pollCounter}}</b></div>
Skip Wonnell2c977e22018-03-01 08:30:15 -0600177 <span>{{statusResponse}}</span>
sj108sb694d952018-03-21 21:25:39 +0530178 </div>
Skip Wonnell2c977e22018-03-01 08:30:15 -0600179
180 <div *ngIf="errorResponse">
181 <p style="height:450px;" disabled class="text-center">
182 {{errorResponse}}
183 </p>
184 </div>
185
186 </div>
187 </div>
188 </div>
189</div>