For an assertion failures for the steps I.see or I.dontSee methods assertion error messages are not able to capture as it's not available in test object in hook method _failure(test)
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- javascript, node.js, playwright
- 領域
- testing
研究方向
首先,在 Playwright 設定下,追蹤 CodeceptJS 的 hook 方法 _failure(test),了解 I.see 和 I.dontSee assertion 失敗時的處理流程。確認 assertion 訊息儲存在哪裡,以及 Allure 報告是否接收到該訊息;當失敗訊息可供 hook 使用並出現在報告中時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
What are you trying to achieve?
For an assertion failures for the steps I.see or I.dontSee methods assertion error messages should be able to capture
What do you get instead?
Not able to capture the error message as the same is not available in test object in hook method _failure(test).
Hence not able to capture assertion failure message in Allure report:
Provide console output if related. Use
--verbosemode for more details.
# paste output here
Provide test source code if related
// paste test
Details
- CodeceptJS version: 3.6.4
- NodeJS Version: 20
- Operating System: MacOS
- Playwright
- Configuration file:
# paste config here
- 主要語言
- JavaScript
- 星號
- 4.2k
- 分支
- 756
- 平均合併
- 2 天 9 小時
- 30 天內合併 PR
- 16
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
codeceptjs/CodeceptJS 的其他 Issue
-
stale
難度 2/5 1-3 小時 新手友好度 72/100
codeceptjs/CodeceptJS#5420 · 1 則留言 ·
-
stale
難度 2/5 1-3 小時 新手友好度 76/100
codeceptjs/CodeceptJS#5358 · 1 則留言 ·
-
stale
難度 2/5 1-3 小時 新手友好度 78/100
codeceptjs/CodeceptJS#4958 · 10 則留言 · 2 個 reaction ·
-
stale
難度 1/5 1 小時以內 新手友好度 72/100
codeceptjs/CodeceptJS#4778 · 3 則留言 ·
-
stale
難度 4/5 3-5 天 新手友好度 38/100
codeceptjs/CodeceptJS#5618 · 1 則留言 ·
查看 codeceptjs/CodeceptJS 的全部 Issue
相似的 Issue
-
Bug
難度 2/5 1-3 小時 新手友好度 70/100
Automattic/safe-publish#594 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
dream-num/dsh-univer-office#104 ·
-
comp/dashboard invalid P3
難度 2/5 1-3 小時 新手友好度 70/100
NousResearch/hermes-agent#121143 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
avniproject/avni-webapp#1811 ·
-
area/auroraboot area/webui bug
難度 2/5 1-3 小時 新手友好度 75/100