-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest-report.json
More file actions
598 lines (598 loc) · 22.4 KB
/
test-report.json
File metadata and controls
598 lines (598 loc) · 22.4 KB
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
{
"timestamp": "2025-10-24T05:54:41.244Z",
"summary": {
"professional": {
"total": 7,
"critical": 6,
"high": 1,
"medium": 0,
"low": 0
},
"simple": {
"total": 8,
"critical": 3,
"high": 4,
"medium": 1,
"low": 0
}
},
"details": {
"professional": {
"issues": [
{
"severity": "Critical",
"category": "Network Failure",
"description": "請求完全失敗: https://cdn.jsdelivr.net/npm/three@r128/examples/js/controls/OrbitControls.js",
"reproduction": "嘗試加載 https://cdn.jsdelivr.net/npm/three@r128/examples/js/controls/OrbitControls.js",
"solution": "檢查 CDN 可用性、CORS 配置、網絡連接",
"timestamp": "2025-10-24T05:54:35.170Z"
},
{
"severity": "Critical",
"category": "Network Failure",
"description": "請求完全失敗: https://cdn.jsdelivr.net/npm/three@r128/examples/js/controls/PointerLockControls.js",
"reproduction": "嘗試加載 https://cdn.jsdelivr.net/npm/three@r128/examples/js/controls/PointerLockControls.js",
"solution": "檢查 CDN 可用性、CORS 配置、網絡連接",
"timestamp": "2025-10-24T05:54:35.473Z"
},
{
"severity": "Critical",
"category": "JavaScript Exception",
"description": "頁面異常: THREE.OrbitControls is not a constructor",
"reproduction": "重現錯誤場景",
"solution": "修復異常: TypeError: THREE.OrbitControls is not a constructor\n at initThreeJS (http://localhost:8080/professional:603:29)\n at http://localhost:8080/professional:994:13",
"timestamp": "2025-10-24T05:54:35.527Z"
},
{
"severity": "Critical",
"category": "Rendering",
"description": "WebGL 上下文創建失敗",
"reproduction": "嘗試獲取 WebGL context",
"solution": "檢查瀏覽器 WebGL 支持、硬件加速設置",
"timestamp": "2025-10-24T05:54:38.025Z"
},
{
"severity": "High",
"category": "Rendering",
"description": "渲染錯誤: WebGL context 無法創建",
"reproduction": "執行渲染測試",
"solution": "修復渲染相關代碼",
"timestamp": "2025-10-24T05:54:38.025Z"
},
{
"severity": "Critical",
"category": "Dependencies",
"description": "PointerLockControls 模塊加載失敗",
"reproduction": "檢查 Network 面板中的 PointerLockControls 請求",
"solution": "檢查 import 語句、CDN URL、確保 Three.js 版本匹配",
"timestamp": "2025-10-24T05:54:38.029Z"
},
{
"severity": "Critical",
"category": "Test Execution",
"description": "測試執行失敗: page.metrics is not a function",
"reproduction": "運行測試套件",
"solution": "修復錯誤: TypeError: page.metrics is not a function\n at testResourceUsage (C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:391:30)\n at runTests (C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:722:11)\n at runNextTicks (node:internal/process/task_queues:60:5)\n at process.processImmediate (node:internal/timers:454:9)\n at process.callbackTrampoline (node:internal/async_hooks:130:17)\n at async C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:921:5",
"timestamp": "2025-10-24T05:54:38.056Z"
}
],
"metrics": {
"performance": {
"loadTime": 940,
"domContentLoaded": 889.8999999985099,
"firstPaint": 268,
"firstContentfulPaint": 268,
"domInteractive": 889.8999999985099,
"resources": 3
},
"rendering": {
"canvas": true,
"webgl": false,
"context": null,
"errors": [
"WebGL context 無法創建"
],
"canvasSize": {
"width": 1318,
"height": 1020
}
},
"cdn": {
"three": true,
"pointerLockControls": false,
"errors": [
"PointerLockControls 未加載"
]
},
"buttons": [
{
"text": "外部視角",
"id": "",
"className": "mode-btn active",
"disabled": false
},
{
"text": "內部導覽",
"id": "",
"className": "mode-btn",
"disabled": false
},
{
"text": "第一人稱",
"id": "",
"className": "mode-btn",
"disabled": false
},
{
"text": "B1 停車場+機房",
"id": "",
"className": "floor-btn",
"disabled": false
},
{
"text": "1F 長照+AI記憶",
"id": "",
"className": "floor-btn active",
"disabled": false
},
{
"text": "2F 托嬰+SIDS監測",
"id": "",
"className": "floor-btn",
"disabled": false
},
{
"text": "3F 親子共學",
"id": "",
"className": "floor-btn",
"disabled": false
},
{
"text": "4F VR教室",
"id": "",
"className": "floor-btn",
"disabled": false
},
{
"text": "5F 綠能系統",
"id": "",
"className": "floor-btn",
"disabled": false
},
{
"text": "6F 會議廳",
"id": "",
"className": "floor-btn",
"disabled": false
},
{
"text": "線框",
"id": "",
"className": "ctrl-btn",
"disabled": false
},
{
"text": "自動旋轉",
"id": "",
"className": "ctrl-btn",
"disabled": false
},
{
"text": "重置視角",
"id": "",
"className": "ctrl-btn",
"disabled": false
},
{
"text": "幫助",
"id": "",
"className": "ctrl-btn",
"disabled": false
}
],
"keyboard": {
"listenersAttached": true,
"eventsReceived": 8,
"keys": [
"w",
"a",
"s",
"d",
"ArrowUp",
"ArrowLeft",
"ArrowDown",
"ArrowRight"
]
},
"mouse": {
"clickReceived": true,
"moveReceived": true
},
"collision": {
"exists": true,
"functional": true,
"errors": []
},
"compatibility": {
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/141.0.7390.37 Safari/537.36",
"webgl": true,
"canvas": true,
"pointerLock": true,
"requestAnimationFrame": true,
"es6Support": true,
"localStorage": true,
"sessionStorage": true
}
},
"console": [
{
"type": "warning",
"text": "[GroupMarkerNotSet(crbug.com/242999)!:A030290044330000]Automatic fallback to software WebGL has been deprecated. Please use the --enable-unsafe-swiftshader (about:flags#enable-unsafe-swiftshader) flag to opt in to lower security guarantees for trusted content.",
"timestamp": "2025-10-24T05:54:35.545Z"
},
{
"type": "warning",
"text": "[.WebGL-0x82c001a1400]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels",
"timestamp": "2025-10-24T05:54:35.545Z"
},
{
"type": "warning",
"text": "[GroupMarkerNotSet(crbug.com/242999)!:A000290044330000]Automatic fallback to software WebGL has been deprecated. Please use the --enable-unsafe-swiftshader (about:flags#enable-unsafe-swiftshader) flag to opt in to lower security guarantees for trusted content.",
"timestamp": "2025-10-24T05:54:38.057Z"
}
],
"network": [
{
"type": "request",
"url": "http://localhost:8080/professional",
"method": "GET",
"resourceType": "document",
"timestamp": "2025-10-24T05:54:34.588Z"
},
{
"type": "response",
"url": "http://localhost:8080/professional",
"status": 200,
"resourceType": "document",
"timestamp": "2025-10-24T05:54:34.603Z"
},
{
"type": "request",
"url": "https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js",
"method": "GET",
"resourceType": "script",
"timestamp": "2025-10-24T05:54:34.616Z"
},
{
"type": "request",
"url": "https://cdn.jsdelivr.net/npm/three@r128/examples/js/controls/OrbitControls.js",
"method": "GET",
"resourceType": "script",
"timestamp": "2025-10-24T05:54:34.616Z"
},
{
"type": "request",
"url": "https://cdn.jsdelivr.net/npm/three@r128/examples/js/controls/PointerLockControls.js",
"method": "GET",
"resourceType": "script",
"timestamp": "2025-10-24T05:54:34.617Z"
},
{
"type": "response",
"url": "https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js",
"status": 200,
"resourceType": "script",
"timestamp": "2025-10-24T05:54:34.820Z"
}
],
"errors": [
{
"message": "THREE.OrbitControls is not a constructor",
"stack": "TypeError: THREE.OrbitControls is not a constructor\n at initThreeJS (http://localhost:8080/professional:603:29)\n at http://localhost:8080/professional:994:13",
"timestamp": "2025-10-24T05:54:35.527Z"
}
]
},
"simple": {
"issues": [
{
"severity": "High",
"category": "Network Error",
"description": "網絡請求失敗: http://localhost:8080/simple (HTTP 404)",
"reproduction": "訪問 http://localhost:8080/simple",
"solution": "檢查資源路徑是否正確",
"timestamp": "2025-10-24T05:54:38.538Z"
},
{
"severity": "High",
"category": "JavaScript Error",
"description": "控制台錯誤: Failed to load resource: the server responded with a status of 404 (Not Found)",
"reproduction": "打開開發者工具查看控制台",
"solution": "檢查並修復 JavaScript 代碼錯誤",
"timestamp": "2025-10-24T05:54:38.541Z"
},
{
"severity": "Critical",
"category": "Page Load",
"description": "頁面返回錯誤狀態碼: 404",
"reproduction": "訪問 http://localhost:8080/simple",
"solution": "檢查服務器路由配置",
"timestamp": "2025-10-24T05:54:39.051Z"
},
{
"severity": "Critical",
"category": "Rendering",
"description": "Canvas 元素未找到或未創建",
"reproduction": "檢查頁面 DOM 中的 canvas 元素",
"solution": "確保 Canvas 元素正確創建並添加到 DOM",
"timestamp": "2025-10-24T05:54:41.060Z"
},
{
"severity": "High",
"category": "Rendering",
"description": "2D Canvas 上下文創建失敗",
"reproduction": "嘗試獲取 2D context",
"solution": "檢查 Canvas API 使用是否正確",
"timestamp": "2025-10-24T05:54:41.060Z"
},
{
"severity": "High",
"category": "Rendering",
"description": "渲染錯誤: 未找到 Canvas 元素",
"reproduction": "執行渲染測試",
"solution": "修復渲染相關代碼",
"timestamp": "2025-10-24T05:54:41.060Z"
},
{
"severity": "Medium",
"category": "UI",
"description": "未找到任何按鈕元素",
"reproduction": "檢查頁面中的按鈕",
"solution": "確認按鈕是否正確渲染",
"timestamp": "2025-10-24T05:54:41.062Z"
},
{
"severity": "Critical",
"category": "Test Execution",
"description": "測試執行失敗: page.metrics is not a function",
"reproduction": "運行測試套件",
"solution": "修復錯誤: TypeError: page.metrics is not a function\n at testResourceUsage (C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:391:30)\n at runTests (C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:722:11)\n at runNextTicks (node:internal/process/task_queues:60:5)\n at process.processImmediate (node:internal/timers:454:9)\n at process.callbackTrampoline (node:internal/async_hooks:130:17)\n at async C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:924:5",
"timestamp": "2025-10-24T05:54:41.079Z"
}
],
"metrics": {
"performance": {
"loadTime": 14.699999999254942,
"domContentLoaded": 14.199999999254942,
"firstPaint": 84,
"firstContentfulPaint": 84,
"domInteractive": 14.199999999254942,
"resources": 0
},
"rendering": {
"canvas": false,
"webgl": false,
"context": null,
"errors": [
"未找到 Canvas 元素"
]
},
"buttons": [],
"keyboard": {
"listenersAttached": true,
"eventsReceived": 8,
"keys": [
"w",
"a",
"s",
"d",
"ArrowUp",
"ArrowLeft",
"ArrowDown",
"ArrowRight"
]
},
"mouse": {
"clickReceived": true,
"moveReceived": true
},
"collision": {
"exists": true,
"functional": true,
"errors": []
},
"compatibility": {
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/141.0.7390.37 Safari/537.36",
"webgl": true,
"canvas": true,
"pointerLock": true,
"requestAnimationFrame": true,
"es6Support": true,
"localStorage": true,
"sessionStorage": true
}
},
"console": [
{
"type": "error",
"text": "Failed to load resource: the server responded with a status of 404 (Not Found)",
"timestamp": "2025-10-24T05:54:38.541Z"
},
{
"type": "warning",
"text": "[GroupMarkerNotSet(crbug.com/242999)!:A0C02800EC250000]Automatic fallback to software WebGL has been deprecated. Please use the --enable-unsafe-swiftshader (about:flags#enable-unsafe-swiftshader) flag to opt in to lower security guarantees for trusted content.",
"timestamp": "2025-10-24T05:54:41.079Z"
}
],
"network": [
{
"type": "request",
"url": "http://localhost:8080/simple",
"method": "GET",
"resourceType": "document",
"timestamp": "2025-10-24T05:54:38.531Z"
},
{
"type": "response",
"url": "http://localhost:8080/simple",
"status": 404,
"resourceType": "document",
"timestamp": "2025-10-24T05:54:38.537Z"
}
],
"errors": []
}
},
"prioritization": [
{
"priority": 1,
"severity": "Critical",
"category": "Network Failure",
"description": "請求完全失敗: https://cdn.jsdelivr.net/npm/three@r128/examples/js/controls/OrbitControls.js",
"reproduction": "嘗試加載 https://cdn.jsdelivr.net/npm/three@r128/examples/js/controls/OrbitControls.js",
"solution": "檢查 CDN 可用性、CORS 配置、網絡連接",
"timestamp": "2025-10-24T05:54:35.170Z",
"version": "professional"
},
{
"priority": 2,
"severity": "Critical",
"category": "Network Failure",
"description": "請求完全失敗: https://cdn.jsdelivr.net/npm/three@r128/examples/js/controls/PointerLockControls.js",
"reproduction": "嘗試加載 https://cdn.jsdelivr.net/npm/three@r128/examples/js/controls/PointerLockControls.js",
"solution": "檢查 CDN 可用性、CORS 配置、網絡連接",
"timestamp": "2025-10-24T05:54:35.473Z",
"version": "professional"
},
{
"priority": 3,
"severity": "Critical",
"category": "JavaScript Exception",
"description": "頁面異常: THREE.OrbitControls is not a constructor",
"reproduction": "重現錯誤場景",
"solution": "修復異常: TypeError: THREE.OrbitControls is not a constructor\n at initThreeJS (http://localhost:8080/professional:603:29)\n at http://localhost:8080/professional:994:13",
"timestamp": "2025-10-24T05:54:35.527Z",
"version": "professional"
},
{
"priority": 4,
"severity": "Critical",
"category": "Rendering",
"description": "WebGL 上下文創建失敗",
"reproduction": "嘗試獲取 WebGL context",
"solution": "檢查瀏覽器 WebGL 支持、硬件加速設置",
"timestamp": "2025-10-24T05:54:38.025Z",
"version": "professional"
},
{
"priority": 5,
"severity": "Critical",
"category": "Dependencies",
"description": "PointerLockControls 模塊加載失敗",
"reproduction": "檢查 Network 面板中的 PointerLockControls 請求",
"solution": "檢查 import 語句、CDN URL、確保 Three.js 版本匹配",
"timestamp": "2025-10-24T05:54:38.029Z",
"version": "professional"
},
{
"priority": 6,
"severity": "Critical",
"category": "Test Execution",
"description": "測試執行失敗: page.metrics is not a function",
"reproduction": "運行測試套件",
"solution": "修復錯誤: TypeError: page.metrics is not a function\n at testResourceUsage (C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:391:30)\n at runTests (C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:722:11)\n at runNextTicks (node:internal/process/task_queues:60:5)\n at process.processImmediate (node:internal/timers:454:9)\n at process.callbackTrampoline (node:internal/async_hooks:130:17)\n at async C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:921:5",
"timestamp": "2025-10-24T05:54:38.056Z",
"version": "professional"
},
{
"priority": 7,
"severity": "Critical",
"category": "Page Load",
"description": "頁面返回錯誤狀態碼: 404",
"reproduction": "訪問 http://localhost:8080/simple",
"solution": "檢查服務器路由配置",
"timestamp": "2025-10-24T05:54:39.051Z",
"version": "simple"
},
{
"priority": 8,
"severity": "Critical",
"category": "Rendering",
"description": "Canvas 元素未找到或未創建",
"reproduction": "檢查頁面 DOM 中的 canvas 元素",
"solution": "確保 Canvas 元素正確創建並添加到 DOM",
"timestamp": "2025-10-24T05:54:41.060Z",
"version": "simple"
},
{
"priority": 9,
"severity": "Critical",
"category": "Test Execution",
"description": "測試執行失敗: page.metrics is not a function",
"reproduction": "運行測試套件",
"solution": "修復錯誤: TypeError: page.metrics is not a function\n at testResourceUsage (C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:391:30)\n at runTests (C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:722:11)\n at runNextTicks (node:internal/process/task_queues:60:5)\n at process.processImmediate (node:internal/timers:454:9)\n at process.callbackTrampoline (node:internal/async_hooks:130:17)\n at async C:\\Users\\thc1006\\Desktop\\dev\\easterlin-hsinchu\\playwright-deep-analysis.js:924:5",
"timestamp": "2025-10-24T05:54:41.079Z",
"version": "simple"
},
{
"priority": 10,
"severity": "High",
"category": "Rendering",
"description": "渲染錯誤: WebGL context 無法創建",
"reproduction": "執行渲染測試",
"solution": "修復渲染相關代碼",
"timestamp": "2025-10-24T05:54:38.025Z",
"version": "professional"
},
{
"priority": 11,
"severity": "High",
"category": "Network Error",
"description": "網絡請求失敗: http://localhost:8080/simple (HTTP 404)",
"reproduction": "訪問 http://localhost:8080/simple",
"solution": "檢查資源路徑是否正確",
"timestamp": "2025-10-24T05:54:38.538Z",
"version": "simple"
},
{
"priority": 12,
"severity": "High",
"category": "JavaScript Error",
"description": "控制台錯誤: Failed to load resource: the server responded with a status of 404 (Not Found)",
"reproduction": "打開開發者工具查看控制台",
"solution": "檢查並修復 JavaScript 代碼錯誤",
"timestamp": "2025-10-24T05:54:38.541Z",
"version": "simple"
},
{
"priority": 13,
"severity": "High",
"category": "Rendering",
"description": "2D Canvas 上下文創建失敗",
"reproduction": "嘗試獲取 2D context",
"solution": "檢查 Canvas API 使用是否正確",
"timestamp": "2025-10-24T05:54:41.060Z",
"version": "simple"
},
{
"priority": 14,
"severity": "High",
"category": "Rendering",
"description": "渲染錯誤: 未找到 Canvas 元素",
"reproduction": "執行渲染測試",
"solution": "修復渲染相關代碼",
"timestamp": "2025-10-24T05:54:41.060Z",
"version": "simple"
},
{
"priority": 15,
"severity": "Medium",
"category": "UI",
"description": "未找到任何按鈕元素",
"reproduction": "檢查頁面中的按鈕",
"solution": "確認按鈕是否正確渲染",
"timestamp": "2025-10-24T05:54:41.062Z",
"version": "simple"
}
]
}