Make test name available in beforeEach() and afterEach()
## π Feature Proposal Make test name available in `beforeEach()` and `afterEach()`. ## Motivation When running Selenium tests it's helpful to take a screenshot after every test. Best name for those files would be the test name. Now I use url and timestamp, which are not that good. For further logging purposes `beforeEach()` could use the test name too, to log when that test starts. It makes easier to search server logs from the same time. ## Example ```javascript afterEach(async (testName) => { await saveScreenshot(testName); log(`Test '${testName}' ended at ${getTime()}`); }); ```
Posted by tapioko on Feb 1, 2019, 12:25 PM
Tags
Related issues
- Custom games stuck on "finding server" for all european servers
- Feature request: add ACP (Agent Client Protocol) stdio JSON-RPC mode
- Forza Horizon 6 (2483190)
- Turn off integrated browser for default
- Weekly updates are too frequent
- [BUG] Max 20x plan: 100% usage after 2 hours of light work (5 commits, no agents)
Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments
github (Sysadmin)
Custom games stuck on "finding server" for all european servers
Feature request: add ACP (Agent Client Protocol) stdio JSON-RPC mode
Forza Horizon 6 (2483190)
Turn off integrated browser for default
Weekly updates are too frequent
[BUG] Max 20x plan: 100% usage after 2 hours of light work (5 commits, no agents)
Add gemini-3.1-pro-preview
[TF2] Feature request: Bring Back Quickplay
Make test name available in beforeEach() and afterEach()
## π Feature Proposal Make test name available in `beforeEach()` and `afterEach()`. ## Motivation When running Selenium tests it's helpful to take a screenshot after every test. Best name for those files would be the test name. Now I use url and timestamp, which are not that good. For further logging purposes `beforeEach()` could use the test name too, to log when that test starts. It makes easier to search server logs from the same time. ## Example ```javascript afterEach(async (testName) => { await saveScreenshot(testName); log(`Test '${testName}' ended at ${getTime()}`); }); ```
Comments (0)
No comments yet. Start the discussion.