-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy path310728536d740903b3d8796fef23573179061b5a912bbd4c39eb8140a6759deb.html
866 lines (783 loc) · 40.4 KB
/
310728536d740903b3d8796fef23573179061b5a912bbd4c39eb8140a6759deb.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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Serenity Reports</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="apple-touch-icon" sizes="57x57" href="apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="bootstrap-icons/bootstrap-icons.css">
<!-- JQuery -->
<script type="text/javascript" src="scripts/jquery-1.11.1.min.js"></script><!-- Required Stylesheets -->
<link href="bootstrap-treeview/dist/bootstrap-treeview.min.css" rel="stylesheet">
<!-- Required Javascript -->
<script src="bootstrap-treeview/dist/bootstrap-treeview.min.js"></script><!-- DataTables -->
<link type="text/css" href="datatables/1.13.1/datatables.min.css" rel="stylesheet" />
<script type="text/javascript" src="datatables/1.13.1/datatables.min.js"></script>
<script type="text/javascript" src="datatables/1.13.1/time-elapsed-dhms.js"></script>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="bootstrap/js/bootstrap.min.js"></script>
<script>
jQuery.fn.dataTable.ext.type.order['time-elapsed-dhms-pre'] = function(data) {
var matches = data.match(/^(\d+(?:\.\d+)?)\s*([a-z]+)/i);
var multipliers = {
ms: 1,
s: 1000,
m: 60000,
h: 3600000,
d: 86400000
};
if (matches) {
var multiplier = multipliers[matches[2].toLowerCase()];
return parseFloat(matches[1]) * multiplier;
} else {
return -1;
};
};
</script>
<link rel="stylesheet" href="css/core.css"/>
<link rel="stylesheet" href="css/link.css"/>
<link type="text/css" media="screen" href="css/screen.css" rel="Stylesheet"/>
<!--CHART.JS-->
<script src="chartjs/chart.js"></script>
<script src="chartjs/[email protected]"></script>
<script src="chartjs/patternomaly.min.js"></script>
<script>
// Register the plugin to all charts:
Chart.register(ChartDataLabels);
</script>
<!-- JQuery-UI -->
<link type="text/css" href="jqueryui/1.11.2-start/jquery-ui.min.css" rel="Stylesheet" />
<script type="text/javascript" src="jqueryui/1.11.2-start/jquery-ui.min.js"></script><!-- DataTables -->
<link type="text/css" href="datatables/1.13.1/datatables.min.css" rel="stylesheet" />
<script type="text/javascript" src="datatables/1.13.1/datatables.min.js"></script>
<script type="text/javascript" src="datatables/1.13.1/time-elapsed-dhms.js"></script>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="bootstrap/js/bootstrap.min.js"></script>
<script>
jQuery.fn.dataTable.ext.type.order['time-elapsed-dhms-pre'] = function(data) {
var matches = data.match(/^(\d+(?:\.\d+)?)\s*([a-z]+)/i);
var multipliers = {
ms: 1,
s: 1000,
m: 60000,
h: 3600000,
d: 86400000
};
if (matches) {
var multiplier = multipliers[matches[2].toLowerCase()];
return parseFloat(matches[1]) * multiplier;
} else {
return -1;
};
};
</script>
<script class="code" type="text/javascript">$(document).ready(function () {
$("#scenario-results").DataTable({
"order": [[0, "asc",], [3, "asc",]],
"language": {
searchPlaceholder: "Filter",
search: ""
},
columnDefs: [
{type: 'time-elapsed-dhms', targets: 4}
]
})
$("#manual-scenario-results").DataTable({
"order": [[0, "asc",], [1, "asc",]],
"language": {
searchPlaceholder: "Filter",
search: ""
},
})
// Results table
$('#test-results-table').DataTable({
"order": [[0, "asc",], [3, "asc",]],
"pageLength": 100,
"lengthMenu": [[25, 50, 100, 200, -1], [25, 50, 100, 200, "All"]]
});
})
;
</script>
</head>
<body class="results-page">
<div id="topheader">
<div id="topbanner">
<div id="logo"><a href="index.html"><img src="images/serenity-logo.png" border="0"/></a></div>
<div id="projectname-banner" style="float:right">
<span class="projectname">
<span class="projecttitle">Serenity BDD Report</span>
<span class="projectsubtitle"></span>
</span>
</div>
</div>
</div>
<div class="middlecontent">
<div id="contenttop">
<div class="middlebg">
<span class="breadcrumbs"><a href="index.html">Home</a>
> Duration
</span>
</div>
<div class="rightbg"></div>
</div>
<div class="clr"></div>
<!--/* starts second table*/-->
<div>
<ul class="nav nav-tabs" role="tablist">
<li class="active">
<a href="#"><i class="bi bi-journal-check"></i> Overall Test Results</a>
</li>
<li >
<a href="capabilities.html"><i class="bi bi-journal-text"></i> Requirements</a>
</li>
<li >
<a href="576946480b52ad056d6f5bddf874399c83582ecf90963cc074a14c70580e7d9f.html"><i class="bi bi-chat-text"></i> Features</a>
</li>
</ul>
<span class="date-and-time"><a href="build-info.html"><i class="bi bi-info-circle"></i></a> Report generated 21-01-2025 19:08:54</span>
<br style="clear:left"/>
</div>
<div class="clr"></div>
<div id="beforetable"></div>
<div id="results-dashboard">
<div class="middlb">
<div class="table">
<h2>Test Results: All Tests</h2>
<table class='overview'>
<tr>
<td width="375px" valign="top">
<div class="test-count-summary">
<div>
1 test
|
<a href="47544793bbe8d06a34715c0d73df9afdfae613f29f12015855f3d9eceda75353.csv" title="Download CSV"> <i class="bi bi-cloud-arrow-down" title="Download CSV"></i></a>
<p class="report-info"><i class="bi bi-info-circle"></i> Note that results include
data-driven scenarios containing test ,
which may also contain results other than test .</p>
</div>
</div>
<div>
<ul class="nav nav-tabs">
<li class="active">
<a data-toggle="tab" href="#summary"><i class="bi bi-house-door"></i> Summary</a>
</li>
<li>
<a data-toggle="tab" href="#tests"><i class="bi bi-speedometer"></i> Test
Results</a>
</li>
</ul>
<div class="card border">
<div class="tab-content" id="pills-tabContent">
<div id="summary" class="tab-pane fade in active">
<div class="container-fluid">
<div class="row">
<div class="col-sm-4">
<div>
<h3><i class="bi bi-speedometer2"></i> Key Statistics</h3>
<div>
<table class="table table-striped table-hover">
<tbody>
<tr scope="row">
<td>
<i class="bi bi-card-checklist"></i> Number of Scenarios
</td>
<td>1</td>
</tr>
<tr scope="row">
<td>
<i class="bi bi-caret-right"></i> Total Number of Test Cases
</td>
<td>1</td>
</tr>
<tr scope="row">
<td>
<i class="bi bi-flag-fill"></i> Tests Started
</td>
<td>Jan 21, 2025 19:08:35</td>
</tr>
<tr scope="row">
<td>
<i class="bi bi-stop-circle"></i> Tests
Finished
</td>
<td>Jan 21, 2025 19:08:49</td>
</tr>
<tr scope="row">
<td>
<i class="bi bi-stopwatch"></i> Total
Duration
</td>
<td>14s</td>
</tr>
<tr scope="row">
<td>
<i class="bi bi-trophy"></i> Fastest Test
</td>
<td>14s</td>
</tr>
<tr scope="row">
<td>
<i class="bi bi-skip-start"></i> Slowest
Test
</td>
<td>14s</td>
</tr>
<tr scope="row">
<td>
<i class="bi bi-stopwatch"></i> Average
Execution Time
</td>
<td>14s</td>
</tr>
<tr scope="row">
<td>
<i class="bi bi-stopwatch-fill"></i> Total
Execution Time
</td>
<td>14s</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-sm-4">
<h4><i class="bi bi-check-square"></i> Test Outcomes</h4>
<!-- Severity bar chart -->
<div class="chart-container" style="position: relative; width:30vw">
<canvas id="severityChart" width="300" height="300"></canvas>
</div>
</div>
<div class="col-sm-4">
<h4><i class="bi bi-graph-up"></i> Test Performance</h4>
<!-- Duration bar chart -->
<div class="chart-container" style="position: relative; width:30vw">
<canvas id="durationChart" width="300" height="300"></canvas>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<!-- High level coverage bar chart -->
<div class="chart-container" style="position: relative; width:60vw">
<h3><i class="bi bi-reception-3"></i> Functional Coverage Overview</h3>
<h4>Features</h4>
<canvas id="coverageChart"></canvas>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<h3>Tags</h3>
<div class="card">
<div class="card-body">
<h5 class="card-title">Context</h5>
<div>
<a href="46b54d9084ba9783130da16408afb27a4e4620f6bd966e731510c7395b9ddf5c.html">
<span class="badge" style="background-color:#b0cf73; margin:1em;padding:4px;">
<i class="bi bi-tag"></i> Chrome, Linux 1
</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-11">
<h3>Functional Coverage Details</h3>
<h4>Features</h4>
<table class="table feature-coverage-table" id="Feature">
<thead>
<tr>
<th>Feature</th>
<th style="width:1em;">Test Cases</th>
<th style="width:1em;">Scenarios</th>
<th style="width:1em;">% Pass</th>
<th style="width:1em;">Result</th>
<th>Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="97fabecd9fb00ce57129e9467755fd9d2cba6770be755f0f303258b999a52839.html" > When searching for terms</a>
</td>
<td>1</td>
<td>1</td>
<td>100%</td>
<td>
<a href='##beforetable'><i class='bi bi-check-circle-fill success-icon ' title='SUCCESS'></i></a>
</td>
<td>
<div class="progress">
<div class="progress-bar"
role="progressbar"
style="width: 100%; background-color: #b0cf73"
aria-valuenow="1"
title="100% success"
aria-valuemin="0"
aria-valuemax="100">
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<h3>Tags</h3>
<div class="card">
<div class="card-body">
<h5 class="card-title">Context</h5>
<div>
<a href="46b54d9084ba9783130da16408afb27a4e4620f6bd966e731510c7395b9ddf5c.html">
<span class="tag-badge badge" style="background-color:#b0cf73; margin:1em;padding:4px;">
<i class="bi bi-tag-fill"></i> Chrome, Linux 1
</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="tests" class="tab-pane fade in">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<h3><i class="bi bi-gear"></i> Automated Tests</h3>
<table class="scenario-result-table table" id="scenario-results">
<thead>
<tr>
<th>feature</th>
<th class="test-name-column">Scenario</th>
<th>Steps</th>
<th>Started</th>
<th>Total Duration</th>
<th>Result</th>
</tr>
</thead>
<tbody>
<tr class="scenario-result SUCCESS">
<td>
<a href="97fabecd9fb00ce57129e9467755fd9d2cba6770be755f0f303258b999a52839.html">WhenSearchingForTerms</a>
</td>
<td><a href="0fa92dfaa33c760400100802fc29e0a8bb69a28df4449e8b030b80d956fff5dc.html">Should be able to search for green things</a>
</td>
<td>3</td>
<td>19:08:35</td>
<td>14s 355ms</td>
<td><a href='##beforetable'><i class='bi bi-check-circle-fill success-icon ' title='SUCCESS'></i></a> <span style="display:none">SUCCESS</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<h3><i class="bi bi-hand-index-thumb"></i> Manual Tests</h3>
No manual tests were recorded
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<h3>Tags</h3>
<div class="card">
<div class="card-body">
<h5 class="card-title">Context</h5>
<div>
<a href="46b54d9084ba9783130da16408afb27a4e4620f6bd966e731510c7395b9ddf5c.html">
<span class="tag-badge badge" style="background-color:#b0cf73; margin:1em;padding:4px;">
<i class="bi bi-tag-fill"></i> Chrome, Linux 1
</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div id="beforefooter"></div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<span class="version">Serenity BDD version 4.2.13</span>
</div>
</div>
</div>
<!-- Chart data -->
<!-- PIE CHART -->
<script>
// The results pie chart
const outcomeChartCtx = document.getElementById('resultChart');
// Options define for display value on top of bars
const outcomeDetailsReports = [
{ title: 'Passing Test Cases', link: "310728536d740903b3d8796fef23573179061b5a912bbd4c39eb8140a6759deb.html" },
{ title: 'Pending Test Cases', link: "ba239354e546ef7be3dd5766de91d939174c4dca903a44c47f5b3339c903753e.html" },
{ title: 'Ignored Test Cases', link: "9990f409efa07b174570ce7d7635b7b417c4b5405d2d8855a6d1e36aa7400358.html" },
{ title: 'Skipped Test Cases', link: "ef32f5e7fd7ab07ceb1710c38e4f97e92604c025585602ea2b9dc416ae3854fe.html" },
{ title: 'Aborted Test Cases', link: "3c5bb5bdcc62bcfa316201cf721fda4b06a0a97500358f8df7e8a11040f19376.html"},
{ title: 'Failed Test Cases', link: "4e233aa8ab734f575d2a713abb721cd10fe32a00d311155e60778278fbbadc09.html" },
{ title: 'Broken Test Cases', link: "8258655ee7b842a15db290322eb548afb2cdbfbdb1f2df2b3f92307f9469e93a.html" },
{ title: 'Compromised Test Cases', link: "2f2e548641fa8695684b276e96d56c30fa54a8bf4f8a4fe24286786ce3b9478e.html" },
]
const outcomeData = {
labels: ['Passing Test Cases', 'Pending Test Cases', 'Ignored Test Cases', 'Skipped Test Cases', 'Aborted Test Cases', 'Failed Test Cases', 'Broken Test Cases', 'Compromised Test Cases','Undefined Test Cases'],
datasets: [{
label: 'Test Results',
fill: false,
data: [{meta: 'Passing tests', value: 1}, {meta: 'Pending tests', value: 0}, {meta: 'Ignored tests', value: 0}, {meta: 'Skipped tests', value: 0}, {meta: 'Aborted tests', value: 0}, {meta: 'Failing tests', value: 0}, {meta: 'Broken tests', value: 0}, {meta: 'Compromised tests', value: 0}],
backgroundColor: ['rgba(153,204,51,0.5)','rgba(165, 199, 238, 0.5)','rgba(168, 168, 168, 0.5)','rgba(238, 224, 152, 0.75)','rgba(255, 153, 102, 0.5)','rgba(255, 22, 49, 0.5)','rgba(255, 97, 8, 0.5)','rgba(255, 104, 255, 0.5)','rgba(83, 50, 168, 0.5)'],
borderColor: ['rgba(153,204,51,1)','rgba(165, 199, 238, 1)','rgba(168, 168, 168, 1)','rgba(238, 224, 152, 1)','rgba(255, 153, 102, 1)','rgba(255, 22, 49, 1)','rgba(255, 97, 8, 1)','rgba(255, 104, 255, 1)','rgba(83, 50, 168, 1)'],
borderWidth: 1,
}]
}
const outcomeOptions = {
responsive: true,
plugins: {
legend: {
display: true,
position: 'bottom'
},
// Change options for ALL labels of THIS CHART
datalabels: {
color: '#444444',
'font.weight': 'bold',
formatter: (value, ctx) => {
let sum = 0;
let dataArr = ctx.chart.data.datasets[0].data;
dataArr.map(data => {
sum += data;
});
let percentage = (value * 100 / sum).toFixed(0) + "%";
if (percentage === '0%' || percentage === 'NaN%') {
return '';
} else {
return percentage;
}
},
},
}
}
const outcomeChart = new Chart(outcomeChartCtx, {
type: 'doughnut',
data: outcomeData,
options: outcomeOptions,
plugins: [
{
id: 'text',
beforeDraw: function (chart, a, b) {
var width = chart.width,
height = chart.height,
ctx = chart.ctx;
ctx.restore();
var fontSize = (height / 200).toFixed(1);
ctx.font = fontSize + "em sans-serif";
ctx.textBaseline = "middle";
var text = "100%"
textX = 10 + Math.round((width - ctx.measureText(text).width) / 2);
textY = (height / 2) - 40;
ctx.fillText(text, textX, textY);
ctx.save();
}
}]
});
function clickHandler(click) {
const points = outcomeChart.getElementsAtEventForMode(click, 'nearest', {intersect: true}, true);
if (points.length) {
const firstPoint = points[0];
window.open(outcomeDetailsReports[firstPoint.index].link, "_self")
}
}
outcomeChartCtx.onclick = clickHandler;
</script>
<!-- END PIE CHART -->
<!-- SUMMARY BAR CHART -->
<script>
// The Severity bar chart
const severityChartCtx = document.getElementById('severityChart');
// Options define for display value on top of bars
const severityDetailsReports = [
{ title: 'Passing Scenarios', link: "310728536d740903b3d8796fef23573179061b5a912bbd4c39eb8140a6759deb.html" },
{ title: 'Pending Scenarios', link: "ba239354e546ef7be3dd5766de91d939174c4dca903a44c47f5b3339c903753e.html" },
{ title: 'Ignored Scenarios', link: "9990f409efa07b174570ce7d7635b7b417c4b5405d2d8855a6d1e36aa7400358.html" },
{ title: 'Skipped Scenarios', link: "ef32f5e7fd7ab07ceb1710c38e4f97e92604c025585602ea2b9dc416ae3854fe.html" },
{ title: 'Aborted Scenarios', link: "3c5bb5bdcc62bcfa316201cf721fda4b06a0a97500358f8df7e8a11040f19376.html"},
{ title: 'Failed Scenarios', link: "4e233aa8ab734f575d2a713abb721cd10fe32a00d311155e60778278fbbadc09.html" },
{ title: 'Broken Scenarios', link: "8258655ee7b842a15db290322eb548afb2cdbfbdb1f2df2b3f92307f9469e93a.html" },
{ title: 'Compromised Scenarios', link: "2f2e548641fa8695684b276e96d56c30fa54a8bf4f8a4fe24286786ce3b9478e.html" },
]
const severityData = {
labels: ['Passing', 'Pending', 'Ignored', 'Skipped', 'Aborted', 'Failed', 'Broken', 'Compromised'],
datasets: [
{
label: 'Automated',
data: [1,0,0,0,0,0,0,0],
backgroundColor: ['rgba(153,204,51,0.5)','rgba(165, 199, 238, 0.5)','rgba(168, 168, 168, 0.5)','rgba(238, 224, 152, 0.75)','rgba(255, 153, 102, 0.5)','rgba(255, 22, 49, 0.5)','rgba(255, 97, 8, 0.5)','rgba(255, 104, 255, 0.5)','rgba(83, 50, 168, 0.5)'],
borderColor: ['rgba(153,204,51,1)','rgba(165, 199, 238, 1)','rgba(168, 168, 168, 1)','rgba(238, 224, 152, 1)','rgba(255, 153, 102, 1)','rgba(255, 22, 49, 1)','rgba(255, 97, 8, 1)','rgba(255, 104, 255, 1)','rgba(83, 50, 168, 1)'],
borderWidth: 1
},
{
label: 'Manual',
data: [0,0,0,0,0,0,0,0],
backgroundColor: ['rgba(153,204,51,0.25)','rgba(165, 199, 238, 0.25)','rgba(168, 168, 168, 0.25)','rgba(238, 224, 152, 0.375)','rgba(255, 153, 102, 0.25)','rgba(255, 22, 49, 0.25)','rgba(255, 97, 8, 0.25)','rgba(255, 104, 255, 0.25)','rgba(83, 50, 168, 0.25)'],
borderColor: ['rgba(153,204,51,1)','rgba(165, 199, 238, 1)','rgba(168, 168, 168, 1)','rgba(238, 224, 152, 1)','rgba(255, 153, 102, 1)','rgba(255, 22, 49, 1)','rgba(255, 97, 8, 1)','rgba(255, 104, 255, 1)','rgba(83, 50, 168, 1)'],
borderWidth: 1
},
]
}
const severityOptions = {
responsive: true,
skipNull: true,
scales: {
x: {
stacked: true,
},
y: {
stacked: true,
}
},
plugins: {
// Change options for ALL labels of THIS CHART
datalabels: {
color: '#444444',
'font.weight': 'bold',
formatter: (value, ctx) => {
if (value === 0) {
return '';
} else {
return value;
}
},
}
}
}
const severityChart = new Chart(severityChartCtx, {
type: 'bar',
data: severityData,
options: severityOptions
});
function clickHandler(click) {
const points = severityChart.getElementsAtEventForMode(click, 'nearest', {intersect: true}, true);
if (points.length) {
const firstPoint = points[0];
window.open(severityDetailsReports[firstPoint.index].link, "_self")
}
}
severityChartCtx.onclick = clickHandler;
</script>
<!-- END SUMMARY CHART -->
<!-- DURATION CHART -->
<script>
// Options define for display value on top of bars
const durationDetailsReports = [
{title: "Under 1 second", link: "e394062c3ab25a216f4a06beb45e8764adcb44ff53b3f08f150a9aed307ebad2.html"},
{title: "1 to 10 seconds", link: "e3d1bc1cc1b8143b8f588ad0070a53f839f9fc96927eac78652b08386c0eb9ae.html"},
{title: "10 to 30 seconds", link: "b6821741f73d73fa33d72f5bfa2b3e5f4616b49960ecc9aeff223c8fafb1d27d.html"},
{title: "30 to 60 seconds", link: "6eea64e35df7852e6783e2bac5bebf3d7a7577b0733d9515c0177be80ea064c6.html"},
{title: "1 to 2 minutes", link: "b4c0a5cca81c2251a13e8992fdeceb31d347a9a3ee3eb44171ffde1d78085db1.html"},
{title: "2 to 5 minutes", link: "1e025bc750f6ca94ee2ded1af91cd01f76166713afa925124747190d2dbd2407.html"},
{title: "5 to 10 minutes", link: "9dd841a6aa7040d9a48530cfbff06ab1f983d7538a9c74acc84bbc4fe3293358.html"},
{title: "10 minutes or over", link: "f9adf9b852ff6917a497277a1ed64c751ebc0c33ed8fe3060ef61186fa104d24.html"},
]
// The Severity bar chart
const durationChartCtx = document.getElementById('durationChart');
// Options define for display value on top of bars
const durationData = {
labels: ['Under 1 second','1 to 10 seconds','10 to 30 seconds','30 to 60 seconds','1 to 2 minutes','2 to 5 minutes','5 to 10 minutes','10 minutes or over'],
datasets: [{
label: 'Number of tests per duration',
fill: false,
data: ['0','0','1','0','0','0','0','0'],
backgroundColor: 'rgba(83, 146, 255,0.5)',
borderColor: 'rgba(83, 146, 255, 1)',
}]
}
const durationOptions = {
responsive: true,
plugins: {
// Change options for ALL labels of THIS CHART
datalabels: {
color: '#444444',
'font.weight': 'bold',
formatter: (value, ctx) => {
if (value > 0) {
return value;
} else {
return '';
}
},
},
tooltip: {
enabled: true,
usePointStyle: true,
callbacks: {
label: (data) => {
return data.parsed.y + ' tests'
}
},
},
},
}
const durationChart = new Chart(durationChartCtx, {
type: 'bar',
data: durationData,
options: durationOptions
});
function durationClickHandler(click) {
const points = durationChart.getElementsAtEventForMode(click, 'nearest', {intersect: true}, true);
if (points.length) {
const firstPoint = points[0];
window.open(durationDetailsReports[firstPoint.index].link, "_self")
}
}
durationChartCtx.onclick = durationClickHandler;
</script>
<!-- END DURATION CHART -->
<!-- COVERAGE BAR CHART -->
<script>
// The coverage bar chart
const coverageChartCtx = document.getElementById('coverageChart');
// Options define for display value on top of bars
const coverageReports = [
{
title: 'When searching for terms',
result: 'SUCCESS',
link: "97fabecd9fb00ce57129e9467755fd9d2cba6770be755f0f303258b999a52839.html"
},
]
const coverageData = {
labels: [
'When searching for terms',
],
datasets: [
{
label: ['Passing Tests'],
data: [1],
backgroundColor: [ 'rgba(153,204,51,0.5)' ]
},
{
label: ['Pending Tests'],
data: [0],
backgroundColor: [ 'rgba(165, 199, 238, 0.5)' ]
},
{
label: ['Ignored Tests'],
data: [0],
backgroundColor: [ 'rgba(168, 168, 168, 0.5)' ]
},
{
label: ['Skipped Tests'],
data: [0],
backgroundColor: [ 'rgba(238, 224, 152, 0.75)' ]
},
{
label: ['Aborted Tests'],
data: [0],
backgroundColor: [ 'rgba(255, 153, 102, 0.5)' ]
},
{
label: ['Failed Tests'],
data: [0],
backgroundColor: [ 'rgba(255, 22, 49, 0.5)' ]
},
{
label: ['Errors'],
data: [0],
backgroundColor: [ 'rgba(255, 97, 8, 0.5)' ]
},
{
label: ['Compromised Tests'],
data: [0],
backgroundColor: [ 'rgba(255, 104, 255, 0.5)' ]
},
]
}
const coverageOptions = {
responsive: true,
indexAxis: 'y',
// barPercentage: ,
barThickness: 'flex',
maxBarThickness: 30,
minBarLength: 2,
skipNull: true,
scales: {
x: {
stacked: true,
},
y: {
stacked: true,
}
},
plugins: {
// Change options for ALL labels of THIS CHART
datalabels: {
color: '#444444',
'font.weight': 'bold'
},
tooltip: {
enabled: true,
usePointStyle: true,
},
},
}
const coverageChart = new Chart(coverageChartCtx, {
type: 'bar',
data: coverageData,
options: coverageOptions
});
function coverageClickHandler(click) {
const points = coverageChart.getElementsAtEventForMode(click, 'nearest', {intersect: true}, true);
if (points.length) {
const firstPoint = points[0];
if (coverageReports[firstPoint.index].link) {
window.open(coverageReports[firstPoint.index].link, "_self")
}
}
}
coverageChartCtx.onclick = coverageClickHandler;
</script>
<!-- END COVERAGE CHART -->
</body>
</html>