forked from Section508Coordinators/ACRT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathACRT_View_webReport.html
308 lines (249 loc) · 15.8 KB
/
ACRT_View_webReport.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html>
<html lang="en">
<script src="./JS/AngularJS1.6.9/angular.min.js"></script>
<script src="./JS/angular-sanitize.js"></script>
<head>
<title>View Report</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
<meta name="description" content="Great Tool to track test results" />
<link rel="stylesheet" type="text/css" href="./CSS/acrt_styles.css">
</head>
<body ng-app="acrt" ng-controller="acrtFormCtrl">
<div class="topnav" id="myTopnav">
<a title="Home" href="index.html" id="aboutID">Home </a>
<a title="Instructions" href="./Help.html" target="_blank" id="helpID">Instructions </a>
<a title="Create/Edit Report" href="./ACRT_Web_Input_Form.html" id="crtReportID" >Create/Edit Report </a>
<a title="View Report" href="./ACRT_View_webReport.html" id="vwRptId" >View Report</a>
<a title="View License" href= "./Resources/LICENSE.html" target="_blank" id="licenseID"> View License </a>
</div>
<br>
<main>
<form id="webTestResult">
<h1> View Test Report </h1>
View test report. <a title="View Report instructions" href="./Help_Report.html" target="_blank" id="tstinstrID"> "View Report" instructions </a>
<p><strong ng-if="isDraft" class="hdnMsg"> This is a Draft report. To view final report please input all required test results. </strong><p>
<label for="fileinput"> Select test results file.
</label><br>
<input type='file' class="button" id='fileinput' name='Browse to file'>
<br><br><label for="loadFile"> Select <strong> Load File </strong> button to load test results.
</label><br> <button id='buttonLoad' class="button" ng-model="loadbtn" ng-click="loadFile();" id='loadFile' name="Load Data In this Form" ng-model-options="{ updateOn: 'click', debounce: { 'default': 20, 'blur': 0 }}" >Load Results</button>
<br>You have selected <strong>{{evalMethod}} </strong> Version <strong class="hdnMsg">{{evalMethodVrsn}}</strong>
<p id="msg1"></p>
</ul> <br>
<fieldset>
<legend>
<h2> Product </h2>
</legend>
<button class="collapsible" id="productBtn" onclick="expandCollapse1()"> <div id="expandCollapse1"> <i class="up"></i> Select to show Product section</div> </button>
<div class="content">
<div class="divSpace" id="productInfo" >
<label for="productID"> Product Name: </label> <input type="string" ng-model="productID" class="betnTags" id="productID" name="Entered Name Of Product" ng-readonly="true" size="100">
<br><label for="versionID"> Product Version: </label> <input type="string" ng-model="ownerID" class="betnTags" id="ownerID" name="Entered Product Version" ng-readonly="true" size="50">
<br><label for="ownerID">Product Owner: </label> <input type="string" ng-model="versionID" class="betnTags" id="versionID" name="Entered Product Owner/Vendor" ng-readonly="true" size="40">
<br><label for="productType"> Product Type: </label> <input type="string" ng-model="productType" class="betnTags" id="productType" name="Entered Type Of Product" ng-readonly="true">
<br><label for="urlID">Location: </label> <input type="string" ng-model="urlID" class="dateField" id="urlID" name="Entered Location" ng-readonly="true">
<br><label for="prodDescID">Product description:<br> </label> <textarea ng-model="prodDescID" class="txtarea" rows="4" cols="90" id="prodDescID" name="Entered Product Description" ng-readonly="true"></textarea>
<br> <label for="prdNteDescID"> Notes: <br></label> <textarea ng-model="prdNteDescID" class="txtarea" id="prdNteDescID" rows="4" cols="90" name="Entered Notes" ng-readonly="true"></textarea>
</div>
</div>
</fieldset> <br>
<fieldset>
<legend>
<h2> Test Environment </h2>
</legend>
<button class="collapsible" onclick="expandCollapse2()">
<div id="expandCollapse2"> <i class="up"></i> Select to show Test Environment section</div>
</button>
<div class="content">
<div class="divSpace" id="sysInfo">
<label for="myBrowserTested">Browser: </label> <input type="string" ng-model="myBrowserTested" class="txtarea" id="myBrowserTested" name="Selected Browser Types" ng-readonly="true" width=200 size="100">
<br><br> <label for="myBrowser">Browser Version: </label> <input type="string" ng-model="myBrowser" class="txtarea" id="myBrowser" name="Selected Browser Versions" ng-readonly="true" size="100">
<br><label for="compID">Compatibility View: </label> <input type="string" ng-model="compID" class="betnTags" id="compID" name="Selected Compatibility View" ng-readonly="true"> <br>
<br><label for="myOpsysTested"> Operating System: </label> <input type="string" ng-model="myOpsysTested" class="txtarea" id="myOpsysTested" name="Selected OS Tested" ng-readonly="true" size="80">
<br><br><label for="myOpsys"> Operating System Version: </label> <input type="string" ng-model="myOpsys" class="txtarea" id="myOpsys" name="Selected OS Versions" ng-readonly="true" size="80">
</div>
</div>
</fieldset> <br>
<fieldset>
<legend>
<h2> Testing Information </h2>
</legend>
<button class="collapsible" onclick="expandCollapse3()">
<div id="expandCollapse3"> <i class="up"></i> Select to show Testing Information section</div>
</button>
<div class="content">
<div class="divSpace" id="productInfo">
<label for="firstname"> Tester's First Name: </label> <input type="string" ng-model="firstname" class="betnTags" id="firstname" name="Entered Tester's First Name" ng-readonly="true">
<br><label for="lastname"> Tester's Last Name: </label> <input type="string" ng-model="lastname" class="betnTags" id="lastname" name="Entered Tester's Last Name" ng-readonly="true">
<br><label for="testerID"> Trusted Tester ID: </label> <input type="string" ng-model="testerID" class="betnTags" id="testerID" name="Entered Tester's ID" ng-readonly="true"> <br>
<br><label for="testerContact"> Tester's Email: </label> <input type="string" ng-model="testerContact" class="betnTags" id="testerContact" name="Entered Tester's Contact" ng-readonly="true">
<br><label for="testScope">Testing Scope: </label> <textarea rows="4"cols="90" type="text" ng-model="testScope" class="txtarea" id="testScope" name="Entered Test Scope" ng-readonly="true"></textarea> <br>
</div>
</div>
</fieldset> <br>
<div id="displayTestRslt" hidden >
<h3> Test Results </h3>
<label for="evalMethod"> Testing Method:</label> <input type="string" ng-model="evalMethod" class="betnTags" id="evalMethod" name="Selected Evaluation Method Used" ng-readonly="true">
<label for="evalMethodVrsn">Testing Method Version: </label> <input type="string" ng-model="evalMethodVrsn" class="betnTags" id="evalMethodVrsn" name="Entered Evaluation Version" ng-readonly="true"> <br>
<label for="dateSubmitted"> Test Completion Date:</label> <input type="string" ng-model="dateSubmitted" class="dateField" id="dateSubmitted" name="Test submitted date" ng-readonly="true"> <br> <br>
<table id="sc1">
<caption> <strong>WCAG Report </strong></caption>
<thead>
<tr>
<th style="width: 98px" scope="col">Criteria</th>
<th style="width: 218px" scope="col">Conformance Level</th>
<th style="width: 350px" scope="col">Remarks and Explanations </th>
</tr>
</thead>
<tbody ng-repeat="record1 in jsonData">
<tr ng-repeat="test1 in record1.SuccessCriteria">
<th scope="row" title="Success Criteria" style="width: 100px">{{test1.CrtID}}</th>
<td style="width: 220px" title="Conformance Level" >{{test1.ConformanceLvl}}</td>
<td style="width: 350px" title="Remarks & Explanations" > {{test1.RemarkExplntn}} <br> </td>
</tr>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<input id="selector111" name="Checkbox to view test results" title="Checkbox to view test results" type="checkbox" ng-model="checked1" onclick="chkBxMsg('selector111', 'chkUnchk');">
<label for="smoking" name="chkUnchk" id="chkUnchk">Select Checkbox to view all test results</label>
<br />
<div ng-show="checked1">
<div>
<table class="table" id="th1" style="font-size: 93%" >
<thead>
<tr>
<tr>
<th scope="col" title="Test Name" id="testname[$index]">
<div style="width: 83px">Test Name</div>
</th>
<th scope="col" title="Test ID" id="testid[$index]">
<div style="width: 30px">Test ID</div>
</th>
<th scope="col" title="Test Condition" id="tc[$index]">
<div style="width: 198px"> Test Condition </div>
</th>
<th scope="col" title="Issue Number" id="in[$index]"><div style="width: 78px"> Issue Number </div> </th>
<th scope="col" title="Test Result" id="result[$index]">
<div style="width: 67px"> Test Result </div>
</th>
<th scope="col" title="Browser" id="brsr[$index]">
<div style="width: 127px"> Browser </div>
</th>
<th scope="col" title="Tester's Comment" id="location[$index]">
<div style="width: 198px"> Location/Screen </div>
</th>
<th scope="col" title="Tester's Comment" id="cmnt[$index]">
<div style="width: 198px"> Tester Comments </div>
</th>
<th scope="col" title="Screenshot" id="scrnsht[$index]">
<div style="width: 123px" >Screenshot </div>
</th>
<th style="width: 61px" scope="col" title="Global Issue" id="glbl[$index]">Global Issue </th>
<th scope="col" title="Remediation Details" id="rmdtl[$index]">
<div style="width: 198px"> Remediation Details </div>
</th>
<th scope="col" title="Date" id="rmdt[$index]">
<div style="width: 102px"> Date </div>
</th>
</tr>
</tr>
</thead>
<tbody ng-repeat="record in jsonData ">
<tr ng-repeat="test in record.Criteria ">
<th scope="row" title="Test Name" id="tnm1[$index]">
<div class="widetd1"> {{TestName[$index]}} </div>
</th>
<td title="Test Id" id="tid1[$index]">
<div class="widetd2"> {{TestID[$index]}}</div>
</td>
<td title="Selected Test Condition" id="tstcndn1[$index]">
<div class="widetd3"> {{TestCondition[$index]}}</div>
</td>
<td title="Issue Number">
<div style="width: 80px"> {{$index+1}} </div>
</td>
<td title="Selected Test Result" id="tstrslt1[$index]">
<div style="width: 69px"> {{TestResult[$index]}} </div>
</td>
<td title="Selected Browser Types" id="brsr1[$index]">
<div style="width: 129px"> {{T_brwsrType[$index]}} </br> {{T_brwsrVrsn[$index]}}</div>
</td>
<td title="Entered location/screen" id="lcn1[$index]">
<div class="widetd7"> {{location[$index]}}</div>
</td>
<td title="Entered Tester's Comment" id="tstcmt1[$index]">
<div class="widetd7"> {{TesterComment[$index]}}</div>
</td>
<td width="151"> <img width="100" id="image{{test.Counter}}" id="img1[$index]" ng-src={{ImageSrc[$index]}} ng-click="zoom(test.Counter)" class="large-image" title="Selected screenshot" alt="Selected screenshot" onerror="this.style.display='none';" >
<div id="{{test.Counter}}" class="modal">
<span class="close">×</span>
<img class="modal-content" id="img{{test.Counter}}">
<div class="caption" id="caption{{test.Counter}}" ></div>
</div>
</td>
<td title="Selected Global Issue" id="glbl1[$index]">
<div style="width: 46px"> {{GlobalIssue[$index]}} </div>
</td>
<td title="Entered Remediation Details" id="rmdtl1[$index]" >
<div style="width: 201px"> {{RemediationDetails[$index] }}</div>
</td>
<td title="Date" id="rmdt1[$index]" >
<div style="width: 102px"> {{RemediationDate[$index]}} </div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<fieldset ng-show='DisabilityImpactCollectionLength' >
<legend>
<h3> Disability Impact </h3>
</legend>
<h3> <a title="Disability Impact Information " ng-href="./Resources/WCAG 2.0 Impact Statements_2018-10-02.docx">Disability Impact Summary</a> </h3>
<button class="collapsible" id="dsblGrpBtn">Impact Summary </button>
<div class="content">
<label for="dsblImpctRslt"> <h4>Different impacted groups are saperated by comma, check below</h4> </label>
<span id="dsblImpctRslt" >{{DisabilityImpactCollection}}</span>
<!-- commented out because we dont want to display duplicate groups based on failed test conditions
<div id="myImpact" ng-repeat="record in jsonData">
<label for="dsblImpctRslt"> Disability impact summary </label>
<ul id="dsblImpctRslt" ng-repeat="test in record.SuccessCriteria | unique : 'DisabilityImpact' ">
<li title="Impacted group" ng-hide='test.DisabilityImpact == "" || test.DisabilityImpact == " "'>
{{test.DisabilityImpact}}
</li>
</ul>
</div> -->
</div>
</fieldset>
<fieldset>
<legend>
<h3> Other Test Results </h3>
</legend>
<button class="collapsible">Other Results </button>
<div class="content">
<h3> Hardware Test Results </h3>
N/A
<h3> Document Test Results </h3>
N/A
</div>
</fieldset>
</form>
</main>
<br/><br/><br/><br/>
<div id="htmlReportDiv" class="footerbutton" hidden >
Select <strong>Save as HTML</strong> to generate a printer-friendly HTML version of the report (saved in the system's Downloads folder by default). <br/>
<input type="button" id="sbtBtn" class="button" value="Save as HTML" ng-click="saveHtml()">
</div>
<script src="./JS/acrt_Web_Report.js"> </script>
<script>
function myFunction() {
window.print();
}
</script>
</body>
</html>