k6-cucumber-steps 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +7 -4
  2. package/package.json +5 -1
  3. package/.env +0 -17
  4. package/reports/load-results.html +0 -50
  5. package/reports/load-results.json +0 -1
  6. package/reports/report.html +0 -1190
  7. package/temp/k6_script.js +0 -27
  8. package/temp/load_script_2a96242d-8924-468d-a0f1-3f9555b4eef1.js +0 -44
  9. package/temp/load_script_e2119cce-eeb0-4b11-82e1-12f6827d6a82.js +0 -44
  10. package/tmp/k6_script_01d24b4b-b76e-45b1-a457-9668fb82d33a.js +0 -32
  11. package/tmp/k6_script_1438a7b8-37a7-4556-8da9-12e588e666da.js +0 -32
  12. package/tmp/k6_script_15971355-7bba-45c2-85a8-81899162beab.js +0 -32
  13. package/tmp/k6_script_32f4609f-8abb-4d48-9454-321bd66409eb.js +0 -32
  14. package/tmp/k6_script_42cd4c8b-dee1-4b23-997b-ca1b0b8aae34.js +0 -32
  15. package/tmp/k6_script_47e2a318-0613-4ef5-a53b-834b50f52790.js +0 -44
  16. package/tmp/k6_script_49e30b01-9631-4b7f-a2e9-f538bfdade19.js +0 -31
  17. package/tmp/k6_script_4b8eec2f-49ea-4f44-bc8b-075a37784d1a.js +0 -44
  18. package/tmp/k6_script_4c01eb2e-b7d2-4597-a146-a6990dd92853.js +0 -32
  19. package/tmp/k6_script_4d779cfb-0c34-472c-b5fe-85ceb25f2422.js +0 -31
  20. package/tmp/k6_script_4f00954e-7f02-4c0c-8a89-df8183266fac.js +0 -32
  21. package/tmp/k6_script_4f166411-c40b-44a9-9561-94ab8d4c97bd.js +0 -32
  22. package/tmp/k6_script_4fba8ca6-c90f-467e-bc49-15f30a8eae81.js +0 -32
  23. package/tmp/k6_script_5054b6db-ae03-453e-ad29-8b79869c17b7.js +0 -32
  24. package/tmp/k6_script_5d64d2e5-7cde-4313-969c-ca14c9178bff.js +0 -32
  25. package/tmp/k6_script_61db2aea-6187-4b51-b450-67f773c8050c.js +0 -32
  26. package/tmp/k6_script_6b6147df-69a8-4ed3-9479-0edd8a3e64cd.js +0 -32
  27. package/tmp/k6_script_6dda7a7d-dd36-4775-87f5-d0365715ae2b.js +0 -32
  28. package/tmp/k6_script_6e8b3778-ef67-417e-a7c5-885a43529b72.js +0 -44
  29. package/tmp/k6_script_6fca496e-f9d3-47e6-b214-8b998b69e9c8.js +0 -32
  30. package/tmp/k6_script_7ca87434-af5c-4ecc-9a7e-0ce7ae5c05c3.js +0 -32
  31. package/tmp/k6_script_7ff302b6-5bfd-440d-a7e4-bf60cf3ec23b.js +0 -31
  32. package/tmp/k6_script_817f7c24-46a8-4c8e-8c8b-7d63ae8c90f9.js +0 -32
  33. package/tmp/k6_script_88b6b615-94b7-4af4-a05b-40439f73c38a.js +0 -32
  34. package/tmp/k6_script_8a9b2d06-fdf9-408b-98e6-4228e039f66b.js +0 -32
  35. package/tmp/k6_script_8b3bbfa7-4fa6-4116-81ff-db61d60bafd3.js +0 -44
  36. package/tmp/k6_script_93acfc41-ce38-4363-8394-faf4568c62a7.js +0 -33
  37. package/tmp/k6_script_9424816a-7712-400d-80b1-235cf298b102.js +0 -32
  38. package/tmp/k6_script_a8ddb599-632f-4a05-9d6f-b99c93e7533f.js +0 -32
  39. package/tmp/k6_script_a9b18f14-bf36-4423-a706-1e132ff3cfda.js +0 -32
  40. package/tmp/k6_script_a9eb065f-d0b9-42b8-b4fa-90d9c67787a4.js +0 -32
  41. package/tmp/k6_script_aac9cc10-b5cd-4fd6-9ba7-ad37b55a5e0c.js +0 -32
  42. package/tmp/k6_script_ac7f2225-f35b-4330-aa95-ea7468d652ed.js +0 -32
  43. package/tmp/k6_script_acb5057c-60cc-47b3-b8aa-718912587694.js +0 -32
  44. package/tmp/k6_script_aecaaf81-a2e9-4342-a90b-3077eba3fdbe.js +0 -32
  45. package/tmp/k6_script_b054781a-fbe3-41ab-8a55-52c7923bb4e3.js +0 -32
  46. package/tmp/k6_script_b210e574-c636-4b1a-9245-f9d9ce9ba731.js +0 -32
  47. package/tmp/k6_script_b4abecc0-91a9-4dc4-8e40-480a31b7954e.js +0 -32
  48. package/tmp/k6_script_b5a61631-afe3-47c4-af92-40213c3afe1a.js +0 -32
  49. package/tmp/k6_script_b6c1de34-edde-4e1d-be3f-504147837617.js +0 -32
  50. package/tmp/k6_script_be52dc14-7325-4ba0-ba2c-125c1dffab0c.js +0 -42
  51. package/tmp/k6_script_c2dbe965-703c-4c8d-83f0-db2eb73b1ab3.js +0 -32
  52. package/tmp/k6_script_c2ecca4f-7a01-4560-9fe0-4a5184497482.js +0 -33
  53. package/tmp/k6_script_cd13c408-4d59-490a-b788-f2e69ab5aeac.js +0 -32
  54. package/tmp/k6_script_cde84f7c-9d97-4c51-a315-005af6463f40.js +0 -33
  55. package/tmp/k6_script_cfbf49b0-d50a-4e00-b0ee-c1f37ae101bc.js +0 -32
  56. package/tmp/k6_script_d0599a1d-7fe5-4a58-b1f7-571a9c586732.js +0 -32
  57. package/tmp/k6_script_d1cd0a14-dc18-4034-a859-cd8b30da7c68.js +0 -32
  58. package/tmp/k6_script_d2365925-9612-48b5-87e9-4ecd81212133.js +0 -32
  59. package/tmp/k6_script_d38531f2-a437-4117-a4d3-076a11f7dfa6.js +0 -32
  60. package/tmp/k6_script_d415abc5-41b3-4445-a8bf-9c13c3208c59.js +0 -32
  61. package/tmp/k6_script_d9a6e7f4-5b88-4fcf-90d8-0183a1b96608.js +0 -32
  62. package/tmp/k6_script_e70b4a0a-1d52-431c-92e1-a53fd6739dfc.js +0 -32
  63. package/tmp/k6_script_e7bc2c96-7603-468b-b4be-d609d3c2f6ce.js +0 -32
  64. package/tmp/k6_script_e9687b8a-7885-48e5-91ad-9dcd21acc401.js +0 -32
  65. package/tmp/k6_script_ee2c199b-643d-4a78-b8df-7319e02783c1.js +0 -32
  66. package/tmp/k6_script_fe495d2f-7943-4151-a7fe-004ad443083d.js +0 -32
@@ -1,1190 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Cucumber Feature Report</title>
5
- <link rel="icon" href="https://www.lambdatest.com/favicon.ico" >
6
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" >
7
- <style type="text/css">
8
- .panel-heading {
9
- padding: 0;
10
- }
11
-
12
- @media (min-width: 768px) {
13
- .pull-right-lg {
14
- float: left;
15
- }
16
- }
17
-
18
- @media (min-width: 992px) and (max-width: 1199px) {
19
- .pull-right-lg {
20
- float: right;
21
- }
22
- }
23
-
24
- @media (min-width: 768px) and (max-width: 991px) {
25
- .pull-right-lg {
26
- float: right;
27
- }
28
- }
29
-
30
- @media (min-width: 1200px) {
31
- .pull-right-lg {
32
- float: right;
33
- }
34
- }
35
-
36
- .left {
37
- float: left;
38
- }
39
-
40
- .metadata {
41
- overflow: auto;
42
- letter-spacing: 0.2px;
43
- border-color: white;
44
- line-height: 1.6;
45
- color: #4d4d4d;
46
- font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
47
- font-size: 13px;
48
- padding-bottom: 3px;
49
- }
50
-
51
- .panel-heading a {
52
- padding: 10px 15px;
53
- display: block;
54
- position: relative;
55
- text-decoration: none;
56
- }
57
-
58
- .panel-heading i.glyphicon-chevron-down {
59
- display: none;
60
- }
61
-
62
- .panel-heading i.glyphicon-chevron-right {
63
- display: inline-block;
64
- }
65
-
66
- .panel-heading.open i.glyphicon-chevron-down {
67
- display: inline-block;
68
- }
69
-
70
- .panel-heading.open i.glyphicon-chevron-right {
71
- display: none;
72
- }
73
-
74
- .generated-on {
75
- text-align: right;
76
- padding-bottom: 10px;
77
- }
78
-
79
- .panel-title b {
80
- padding-right: 10px;
81
- }
82
-
83
- .panel-heading .label-container {
84
- position: absolute;
85
- top: 8px;
86
- right: 8px;
87
- }
88
-
89
- .panel-heading .label-container label {
90
- margin-left: 5px;
91
- padding: 5px;
92
- }
93
-
94
- .navbar .label-container {
95
- position: absolute;
96
- right: 10px;
97
- top: 14px;
98
- }
99
-
100
- .navbar {
101
- margin-bottom: 10px;
102
- }
103
-
104
- .navbar .label {
105
- font-size: 20px;
106
- }
107
-
108
- .navbar .project-name {
109
- position: absolute;
110
- top: 10px;
111
- left: 50%;
112
- margin-left: -100px;
113
- text-align: center;
114
- font-size: 20px;
115
- font-weight: bold;
116
- }
117
-
118
- .tags {
119
- margin-left: 18px;
120
- margin-right: 20px;
121
- padding-top: 5px;
122
- margin-bottom: -4px;
123
- }
124
-
125
- .tag {
126
- font-size: 13px;
127
- color: #696969;
128
- letter-spacing: 0.3px;
129
- font-weight: bold;
130
- font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
131
- }
132
-
133
- .chart {
134
- padding-bottom: 15px;
135
- }
136
-
137
- div.chart div div svg rect {
138
- fill: #f5f5f5;
139
- }
140
-
141
- .arguments {
142
- margin-left: 30px;
143
- margin-top: 1em;
144
- margin-bottom: 15px;
145
- }
146
-
147
- #directory {
148
- background-color: #f0f0f0;
149
- }
150
-
151
- .screenshot {
152
- padding: 2% 0 2% 0;
153
- }
154
-
155
- .description {
156
- background-color: white;
157
- border-color: white;
158
- line-height: 1.6;
159
- color: #6f6f6f;
160
- font-weight: 400;
161
- font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
162
- font-size: 14px;
163
- padding: 0.1em 0.5em 1.2em 1.5em
164
- }
165
-
166
- #scenario-description {
167
- padding-bottom: 1em;
168
- padding-left: 0.2em;
169
- }
170
-
171
- .scrollBar {
172
- overflow-x: scroll;
173
- }
174
-
175
- table {
176
- border-collapse: collapse;
177
- }
178
-
179
- table, th, td {
180
- border: 1px solid black;
181
- }
182
-
183
- th, td {
184
- text-align: left;
185
- padding: 8px;
186
- }
187
-
188
- th {
189
- background-color: #f5f5f5;
190
- color: black;
191
- }
192
-
193
- .info {
194
- background-color: #fbfbfb;
195
- }
196
-
197
- pre {
198
- display: block;
199
- padding: 10px;
200
- margin-top: 1em;
201
- margin-right: 3em;
202
- font-size: 13px;
203
- line-height: 1.42857143;
204
- word-break: break-all;
205
- word-wrap: break-word;
206
- color: #333;
207
- background-color: #f5f5f5;
208
- border: 1px solid #ccc;
209
- border-radius: 4px;
210
- }
211
-
212
- .step-duration {
213
- float: right;
214
- color: #BDBDBD;
215
- }
216
-
217
- .footer-div {
218
- text-align: right;
219
- vertical-align: middle;
220
- height: 3.5%;
221
- width: 100%;
222
- }
223
-
224
- .footer-container {
225
- margin-right: 10px;
226
- margin-top: 5px;
227
- width: 18%;
228
- z-index: 10;
229
- position: absolute;
230
- right: 0;
231
- bottom: 10px;
232
- text-align: center;
233
- background-color: transparent;
234
- }
235
-
236
- .show-modal:hover {
237
- background-color: #f0f0f0;
238
- }
239
-
240
- .footer-link {
241
- font-size: 13px;
242
- float: right;
243
- }
244
-
245
- .footer-link:hover {
246
- color: darkgray;
247
- }
248
-
249
- .steps {
250
- padding-left: 10px;
251
- padding-right: 10px;
252
- margin-bottom: -4px;
253
- }
254
-
255
- .all-features {
256
- padding-top: 0.6em;
257
- }
258
-
259
- .keyword {
260
- color: #616161;
261
- }
262
-
263
- .feature-passed {
264
- display: block;
265
- }
266
-
267
- .feature-failed{
268
- display: block;
269
- }
270
-
271
- .label-saffron{
272
- background-color: #ff9933;
273
- }
274
-
275
- .label-retries {
276
- display: flex;
277
- flex-wrap: wrap;
278
- width: 90px;
279
- justify-content: flex-end;
280
- gap: 5px;
281
- }
282
-
283
- .label-retries > span:first-child {
284
- min-width: 100%;
285
- }
286
-
287
-
288
- /** Issue in google-charts tooltip - https://github.com/google/google-visualization-issues/issues/2162 */
289
- .google-visualization-tooltip { pointer-events:none; }
290
-
291
- .count-wrapper{
292
- display: flex;
293
- gap: 15px;
294
- }
295
- .card{
296
- border: 1px solid #f5f5f5;
297
- padding: 15px;
298
- color: #fff;
299
- border-radius: 5px;
300
- flex: 1;
301
- }
302
- .generated-on{
303
- margin-right: 10px;
304
- }
305
- .card h4{
306
- font-size: 15px;
307
- }
308
- .red-box{
309
- background: #d9534e;
310
- }
311
- .blue-box{
312
- background: #0074ff;
313
- }
314
- .yellow-box{
315
- background: #f0ad4e;
316
- }
317
- .saffron-box{
318
- background: #ff9933;
319
- }
320
- .green-box{
321
- background: #5cb85b;
322
- }
323
- .gray-box{
324
- background: #999;
325
- }
326
- .amb-box{
327
- background: #218bcf;
328
- }
329
- .undefined-box{
330
- background: #22c2e2;
331
- }
332
- .mb-20px{
333
- margin-bottom: 20px;
334
- }
335
- </style>
336
- <meta charset="UTF-8">
337
- </head>
338
- <body>
339
-
340
- <div class="navbar navbar-default navbar-static-top" role="navigation">
341
- <div class="container">
342
- <div class="navbar-header">
343
-
344
- <a class="navbar-brand">Cucumberjs Report</a>
345
- <div class="project-name visible-md visible-lg">k6-cucumber-steps</div>
346
- <div class="label-container">
347
- <div class="generated-on">
348
- Sun Apr 27 2025 15:16:51 GMT+0100 (West Africa Standard Time)
349
- </div>
350
- </div>
351
- </div>
352
- </div>
353
- </div>
354
-
355
- <div class="container">
356
-
357
- <div class="count-wrapper mb-20px">
358
- <div class="card blue-box">
359
- <div class="feature-title">
360
- <h4>All Scenarios</h2>
361
- </div>
362
- <div class="feature-value">
363
- <h5>
364
- 2
365
- </h5>
366
- </div>
367
- </div>
368
- <div class="card green-box">
369
- <div class="feature-title">
370
- <h4>Passed Scenarios</h2>
371
- </div>
372
- <div class="feature-value">
373
- <h5>
374
- 2
375
- </h5>
376
- </div>
377
- </div>
378
- <div class="card red-box">
379
- <div class="feature-title">
380
- <h4>Failed Scenarios</h2>
381
- </div>
382
- <div class="feature-value">
383
- <h5>
384
- 0
385
- </h5>
386
- </div>
387
- </div>
388
-
389
-
390
-
391
-
392
-
393
- </div>
394
- <div class="row">
395
- <div class="chart col-lg-6 col-md-6" id="piechart_features"></div>
396
- <div class="chart col-lg-6 col-md-6" id="piechart_scenarios"></div>
397
- </div>
398
-
399
-
400
-
401
-
402
-
403
-
404
- <div class="row" xmlns="http://www.w3.org/1999/html">
405
-
406
-
407
- <div class="feature-passed">
408
-
409
- <div class="col-lg-6 col-md-6">
410
- <div class="panel panel-default">
411
- <div class="panel-heading">
412
- <h4 class="panel-title">
413
-
414
- <div class="tags">
415
- </div>
416
-
417
- <a data-toggle="collapse" href="#collapseFeaturek6_cucumber_steps8d55ad41-25d0-413a-933f-4c4468a9a5af">
418
- <i class="glyphicon glyphicon-chevron-right"></i>
419
- <i class="glyphicon glyphicon-chevron-down"></i>
420
- <b>Feature:</b>Run load tests with dynamic GET and POST body from environment variables and JSON files
421
- <span class="label-container">
422
- <span class="label label-success"
423
- title="2 Scenarios Passed">2</span>
424
-
425
-
426
-
427
-
428
-
429
- </span>
430
- </a>
431
- </h4>
432
- </div>
433
- <div id="collapseFeaturek6_cucumber_steps8d55ad41-25d0-413a-933f-4c4468a9a5af" class="panel-collapse collapse">
434
- <div class="panel-body">
435
-
436
-
437
-
438
- <div class="panel panel-default">
439
- <div class="panel-heading">
440
- <h4 class="panel-title">
441
-
442
-
443
- <div class="tags"> <span class="tag"> @loadTest</span>
444
-
445
- </div>
446
-
447
- <a data-toggle="collapse" href="#collapseScenariok6_cucumber_steps69d25417-c242-4a12-aa39-f0109365cd2d">
448
- <div>
449
-
450
- <div style="padding-right: 30px">
451
- <i class="glyphicon glyphicon-chevron-right"></i>
452
- <i class="glyphicon glyphicon-chevron-down"></i>
453
- <b>Scenario Outline:</b>I run the k6 script for load testing with dynamic GET requests
454
- </div>
455
- <div>
456
- <span class="label-container ">
457
-
458
- <span class="label label-success"
459
- title="5 Steps Passed">5</span>
460
-
461
-
462
-
463
-
464
-
465
- </span>
466
- </div>
467
- </div>
468
- <div><small><i></i></small></div>
469
- </a>
470
- </h4>
471
- </div>
472
- <div id="collapseScenariok6_cucumber_steps69d25417-c242-4a12-aa39-f0109365cd2d"
473
- class="panel-collapse collapse">
474
- <div class="panel-body">
475
- <div></div>
476
-
477
-
478
-
479
- <p class="scenario-container">
480
- <div class="row steps">
481
-
482
-
483
- <span class="label label-success" title="Success"><i
484
- class="glyphicon glyphicon-ok"></i></span>
485
-
486
-
487
- <span class="text">
488
- <span class="keyword highlight">Given </span>
489
- <span> I have a k6 script for GET testing</span>
490
-
491
-
492
- <span class="step-duration">
493
- < 1ms
494
- </span>
495
-
496
-
497
-
498
-
499
- <!-- Adding data table data-->
500
-
501
- </span>
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
- </div>
513
- </p>
514
-
515
-
516
-
517
- <p class="scenario-container">
518
- <div class="row steps">
519
-
520
-
521
- <span class="label label-success" title="Success"><i
522
- class="glyphicon glyphicon-ok"></i></span>
523
-
524
-
525
- <span class="text">
526
- <span class="keyword highlight">When </span>
527
- <span> I run the k6 script with the following configurations:</span>
528
-
529
-
530
- <span class="step-duration">
531
- < 1ms
532
- </span>
533
-
534
-
535
-
536
-
537
- <div class="scrollBar">
538
- <table class="arguments">
539
-
540
- <tr>
541
-
542
-
543
- <th>
544
- virtual_users
545
- </th>
546
-
547
- <th>
548
- duration
549
- </th>
550
-
551
- <th>
552
- http_req_failed
553
- </th>
554
-
555
- <th>
556
- http_req_duration
557
- </th>
558
-
559
- <th>
560
- error_rate
561
- </th>
562
-
563
- </tr>
564
-
565
- <tr>
566
-
567
-
568
- <td>
569
- 10
570
- </td>
571
-
572
- <td>
573
- 5
574
- </td>
575
-
576
- <td>
577
- rate&lt;0.05
578
- </td>
579
-
580
- <td>
581
- p(95)&lt;3000
582
- </td>
583
-
584
- <td>
585
- &lt;error_rate&gt;
586
- </td>
587
-
588
- </tr>
589
-
590
- </table>
591
- </div>
592
-
593
-
594
-
595
-
596
-
597
- <!-- Adding data table data-->
598
-
599
- </span>
600
-
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
-
609
-
610
- </div>
611
- </p>
612
-
613
-
614
-
615
- <p class="scenario-container">
616
- <div class="row steps">
617
-
618
-
619
- <span class="label label-success" title="Success"><i
620
- class="glyphicon glyphicon-ok"></i></span>
621
-
622
-
623
- <span class="text">
624
- <span class="keyword highlight">And </span>
625
- <span> the following endpoint(s) is/are used:</span>
626
-
627
-
628
- <span class="step-duration">
629
- < 1ms
630
- </span>
631
-
632
-
633
-
634
-
635
-
636
- <pre class=info><br>/api/users?page=2
637
- https://simple-books-api.glitch.me/books</pre>
638
-
639
-
640
-
641
-
642
- <!-- Adding data table data-->
643
-
644
- </span>
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
-
653
-
654
-
655
- </div>
656
- </p>
657
-
658
-
659
-
660
- <p class="scenario-container">
661
- <div class="row steps">
662
-
663
-
664
- <span class="label label-success" title="Success"><i
665
- class="glyphicon glyphicon-ok"></i></span>
666
-
667
-
668
- <span class="text">
669
- <span class="keyword highlight">When </span>
670
- <span> the authentication type is &quot;none&quot;</span>
671
-
672
-
673
- <span class="step-duration">
674
- < 1ms
675
- </span>
676
-
677
-
678
-
679
-
680
- <!-- Adding data table data-->
681
-
682
- </span>
683
-
684
-
685
-
686
-
687
-
688
-
689
-
690
-
691
-
692
-
693
- </div>
694
- </p>
695
-
696
-
697
-
698
- <p class="scenario-container">
699
- <div class="row steps">
700
-
701
-
702
- <span class="label label-success" title="Success"><i
703
- class="glyphicon glyphicon-ok"></i></span>
704
-
705
-
706
- <span class="text">
707
- <span class="keyword highlight">Then </span>
708
- <span> the API should handle the GET request successfully</span>
709
-
710
-
711
- <span class="step-duration">
712
- 5s 869ms
713
- </span>
714
-
715
-
716
-
717
-
718
- <!-- Adding data table data-->
719
-
720
- </span>
721
-
722
-
723
-
724
-
725
-
726
-
727
-
728
-
729
-
730
-
731
- </div>
732
- </p>
733
-
734
-
735
- </div>
736
- </div>
737
- </div>
738
-
739
-
740
- <div class="panel panel-default">
741
- <div class="panel-heading">
742
- <h4 class="panel-title">
743
-
744
-
745
- <div class="tags"> <span class="tag"> @loadTest</span>
746
-
747
- </div>
748
-
749
- <a data-toggle="collapse" href="#collapseScenariok6_cucumber_stepsc0477b14-0f60-4570-997e-e11d79c91de0">
750
- <div>
751
-
752
- <div style="padding-right: 30px">
753
- <i class="glyphicon glyphicon-chevron-right"></i>
754
- <i class="glyphicon glyphicon-chevron-down"></i>
755
- <b>Scenario Outline:</b>I run the k6 script for load testing with dynamic GET requests
756
- </div>
757
- <div>
758
- <span class="label-container ">
759
-
760
- <span class="label label-success"
761
- title="5 Steps Passed">5</span>
762
-
763
-
764
-
765
-
766
-
767
- </span>
768
- </div>
769
- </div>
770
- <div><small><i></i></small></div>
771
- </a>
772
- </h4>
773
- </div>
774
- <div id="collapseScenariok6_cucumber_stepsc0477b14-0f60-4570-997e-e11d79c91de0"
775
- class="panel-collapse collapse">
776
- <div class="panel-body">
777
- <div></div>
778
-
779
-
780
-
781
- <p class="scenario-container">
782
- <div class="row steps">
783
-
784
-
785
- <span class="label label-success" title="Success"><i
786
- class="glyphicon glyphicon-ok"></i></span>
787
-
788
-
789
- <span class="text">
790
- <span class="keyword highlight">Given </span>
791
- <span> I have a k6 script for GET testing</span>
792
-
793
-
794
- <span class="step-duration">
795
- < 1ms
796
- </span>
797
-
798
-
799
-
800
-
801
- <!-- Adding data table data-->
802
-
803
- </span>
804
-
805
-
806
-
807
-
808
-
809
-
810
-
811
-
812
-
813
-
814
- </div>
815
- </p>
816
-
817
-
818
-
819
- <p class="scenario-container">
820
- <div class="row steps">
821
-
822
-
823
- <span class="label label-success" title="Success"><i
824
- class="glyphicon glyphicon-ok"></i></span>
825
-
826
-
827
- <span class="text">
828
- <span class="keyword highlight">When </span>
829
- <span> I run the k6 script with the following configurations:</span>
830
-
831
-
832
- <span class="step-duration">
833
- < 1ms
834
- </span>
835
-
836
-
837
-
838
-
839
- <div class="scrollBar">
840
- <table class="arguments">
841
-
842
- <tr>
843
-
844
-
845
- <th>
846
- virtual_users
847
- </th>
848
-
849
- <th>
850
- duration
851
- </th>
852
-
853
- <th>
854
- http_req_failed
855
- </th>
856
-
857
- <th>
858
- http_req_duration
859
- </th>
860
-
861
- <th>
862
- error_rate
863
- </th>
864
-
865
- </tr>
866
-
867
- <tr>
868
-
869
-
870
- <td>
871
- 50
872
- </td>
873
-
874
- <td>
875
- 10
876
- </td>
877
-
878
- <td>
879
- rate&lt;0.05
880
- </td>
881
-
882
- <td>
883
- p(95)&lt;3000
884
- </td>
885
-
886
- <td>
887
- &lt;error_rate&gt;
888
- </td>
889
-
890
- </tr>
891
-
892
- </table>
893
- </div>
894
-
895
-
896
-
897
-
898
-
899
- <!-- Adding data table data-->
900
-
901
- </span>
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
- </div>
913
- </p>
914
-
915
-
916
-
917
- <p class="scenario-container">
918
- <div class="row steps">
919
-
920
-
921
- <span class="label label-success" title="Success"><i
922
- class="glyphicon glyphicon-ok"></i></span>
923
-
924
-
925
- <span class="text">
926
- <span class="keyword highlight">And </span>
927
- <span> the following endpoint(s) is/are used:</span>
928
-
929
-
930
- <span class="step-duration">
931
- < 1ms
932
- </span>
933
-
934
-
935
-
936
-
937
-
938
- <pre class=info><br>/api/users?page=2
939
- https://simple-books-api.glitch.me/books</pre>
940
-
941
-
942
-
943
-
944
- <!-- Adding data table data-->
945
-
946
- </span>
947
-
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
- </div>
958
- </p>
959
-
960
-
961
-
962
- <p class="scenario-container">
963
- <div class="row steps">
964
-
965
-
966
- <span class="label label-success" title="Success"><i
967
- class="glyphicon glyphicon-ok"></i></span>
968
-
969
-
970
- <span class="text">
971
- <span class="keyword highlight">When </span>
972
- <span> the authentication type is &quot;none&quot;</span>
973
-
974
-
975
- <span class="step-duration">
976
- < 1ms
977
- </span>
978
-
979
-
980
-
981
-
982
- <!-- Adding data table data-->
983
-
984
- </span>
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
-
994
-
995
- </div>
996
- </p>
997
-
998
-
999
-
1000
- <p class="scenario-container">
1001
- <div class="row steps">
1002
-
1003
-
1004
- <span class="label label-success" title="Success"><i
1005
- class="glyphicon glyphicon-ok"></i></span>
1006
-
1007
-
1008
- <span class="text">
1009
- <span class="keyword highlight">Then </span>
1010
- <span> the API should handle the GET request successfully</span>
1011
-
1012
-
1013
- <span class="step-duration">
1014
- 11s 204ms
1015
- </span>
1016
-
1017
-
1018
-
1019
-
1020
- <!-- Adding data table data-->
1021
-
1022
- </span>
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
-
1031
-
1032
-
1033
- </div>
1034
- </p>
1035
-
1036
-
1037
- </div>
1038
- </div>
1039
- </div>
1040
-
1041
- </div>
1042
- </div>
1043
- </div>
1044
- </div>
1045
-
1046
- </div>
1047
-
1048
- </div>
1049
-
1050
-
1051
-
1052
- </div>
1053
-
1054
-
1055
- <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
1056
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
1057
- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js"></script>
1058
- <script type="text/javascript" src="https://www.google.com/jsapi"></script>
1059
- <script type="text/javascript">
1060
- google.load("visualization", "1", {packages: ["corechart"]});
1061
- google.setOnLoadCallback(function() {drawChart({
1062
- "title" : "Features",
1063
- "failed" : 0,
1064
- "passed" : 1,
1065
- "notdefined" : 0,
1066
- "pending" : 0,
1067
- "skipped" : 0,
1068
- "ambiguous" : 0
1069
- })
1070
- });
1071
- google.setOnLoadCallback(function() {drawChart({
1072
- "title" : "Scenarios",
1073
- "failed" : 0,
1074
- "passed" : 2,
1075
- "rerun" : 0,
1076
- "notdefined" : 0,
1077
- "pending" : 0,
1078
- "skipped" : 0,
1079
- "ambiguous" : 0
1080
- })
1081
- });
1082
- </script>
1083
- <script>
1084
- $(document).ready(function () {
1085
- $('.collapse')
1086
- .on('hide.bs.collapse', function (e) {
1087
- e.stopPropagation();
1088
- $(this).prev().removeClass('open');
1089
- })
1090
- .on('show.bs.collapse', function (e) {
1091
- e.stopPropagation();
1092
- $(this).prev().addClass('open');
1093
- });
1094
-
1095
- let $generated = $('.generated-on');
1096
-
1097
- let timestamp = $generated.text();
1098
- $generated.text('Report generated ' + moment(timestamp).fromNow());
1099
- $generated.prop('title', new Date(timestamp).toISOString());
1100
- });
1101
-
1102
- function toggle(className) {
1103
- let x = $(className);
1104
- if (x.css('display') === 'none') {
1105
- x.css('display', 'block');
1106
- } else {
1107
- x.css('display', 'none');
1108
- }
1109
- }
1110
-
1111
- function drawChart(chartData) {
1112
- let data = google.visualization.arrayToDataTable([
1113
- ['Task', 'Cucumber Results'],
1114
- ['Passed', chartData.passed],
1115
- ['Failed', chartData.failed],
1116
- ['Pending', chartData.pending],
1117
- ['Undefined', chartData.notdefined],
1118
- ['Ambiguous', chartData.ambiguous],
1119
- ['Skipped', chartData.skipped],
1120
- ['Re-run', chartData.rerun],
1121
- ]);
1122
-
1123
- let total =
1124
- chartData.passed +
1125
- chartData.failed +
1126
- (chartData.pending || 0) +
1127
- (chartData.notdefined || 0) +
1128
- (chartData.ambiguous || 0) +
1129
- (chartData.skipped || 0) ||
1130
- chartData.rerun ||
1131
- 0;
1132
- let title;
1133
-
1134
- if (total === 1) {
1135
- title = total + ' ' + chartData.title.slice(0, -1);
1136
- } else {
1137
- title = total + ' ' + chartData.title;
1138
- }
1139
-
1140
- let options = {
1141
- width: '100%',
1142
- height: 240,
1143
- title: title,
1144
- is3D: true,
1145
- colors: ['#5cb85c', '#d9534f', '#999', '#5bc0de', '#428bca', '#f0ad4e', '#ff9933'],
1146
- fontSize: '13',
1147
- fontName: '"Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif',
1148
- slices: {
1149
- 1: { offset: 0.4 },
1150
- 2: { offset: 0.4 },
1151
- 3: { offset: 0.4 },
1152
- 4: { offset: 0.4 },
1153
- 5: { offset: 0.4 },
1154
- 6: { offset: 0.4 },
1155
- 7: { offset: 0.4 },
1156
- },
1157
- titleTextStyle: {
1158
- fontSize: '13',
1159
- color: '#5e5e5e',
1160
- },
1161
- };
1162
-
1163
- let chart = new google.visualization.PieChart(document.getElementById('piechart_' + chartData.title.toLowerCase()));
1164
-
1165
- chart.draw(data, options);
1166
- }
1167
-
1168
- $('a.toggle').on('click', function (e) {
1169
- e.preventDefault();
1170
-
1171
- if (!$(this).hasClass('collapse')) {
1172
- if ($(this).text() === 'Screenshot -') {
1173
- // $(this).text('Screenshot +');
1174
- $(this).next('a.screenshot').find('img').hide();
1175
- } else if ($(this).text() === 'Screenshot +') {
1176
- // $(this).text('Screenshot -');
1177
- $(this).next('a.screenshot').find('img').show();
1178
- }
1179
- }
1180
-
1181
- if ($(this).text().includes(' -')) {
1182
- $(this).text($(this).text().replace(' -', ' +'));
1183
- } else {
1184
- $(this).text($(this).text().replace(' +', ' -'));
1185
- }
1186
- });
1187
-
1188
- </script>
1189
- </body>
1190
- </html>