[java][grid]: Set test name to video file name in dynamic grid#13907
[java][grid]: Set test name to video file name in dynamic grid#13907diemol merged 3 commits intoSeleniumHQ:trunkfrom
Conversation
Signed-off-by: Viet Nguyen Duc <[email protected]>
|
PR Description updated to latest commit (065c28a)
|
PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
|
I cannot update the fork with the latest from |
|
@diemol, I synced this, can you review this first? |
Signed-off-by: Viet Nguyen Duc <[email protected]>
…iumHQ#13907) * [java][grid]: Set test name to video file name in dynamic grid Signed-off-by: Viet Nguyen Duc <[email protected]> * Revert unexpected changes Signed-off-by: Viet Nguyen Duc <[email protected]> --------- Signed-off-by: Viet Nguyen Duc <[email protected]>
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
[java][grid]: Set test name to video file name in dynamic grid
Motivation and Context
This is based on the support of Metadata in tests. When running test with dynamic grid, by adding metadata to your tests, the video file name will extract the value of capability
se:nameand then set to output the video file name.For example, in Python binding:
After test executed, under
/assetsyou can see the video file name under/<sessionId>/test_visit_basic_auth_secured_page_ChromeTests.mp4File name will be trimmed to 255 characters to avoid long file names. Moreover,
spacecharacter will be replaced by_and only characters alphabets, numbers,-(hyphen),_(underscore) are retained in the file name.Types of changes
Checklist
Type
enhancement
Description
DockerSessionFactoryfor better clarity and separation of concerns.se:namecapability, enhancing traceability of test artifacts.Changes walkthrough
DockerSessionFactory.java
Refactor Env Vars Handling and Set Video File Name from Test Namejava/src/org/openqa/selenium/grid/node/docker/DockerSessionFactory.java
clarity.
se:namecapability in session request.
misc.xml
Update Project JDK Version in IDE Configuration.idea/misc.xml