-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[java][grid]: Set test name to video file name in dynamic grid #13907
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @VietND96!
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:name
and then set to output the video file name.For example, in Python binding:
After test executed, under
/assets
you can see the video file name under/<sessionId>/test_visit_basic_auth_secured_page_ChromeTests.mp4
File name will be trimmed to 255 characters to avoid long file names. Moreover,
space
character will be replaced by_
and only characters alphabets, numbers,-
(hyphen),_
(underscore) are retained in the file name.Types of changes
Checklist
Type
enhancement
Description
DockerSessionFactory
for better clarity and separation of concerns.se:name
capability, enhancing traceability of test artifacts.Changes walkthrough
DockerSessionFactory.java
Refactor Env Vars Handling and Set Video File Name from Test Name
java/src/org/openqa/selenium/grid/node/docker/DockerSessionFactory.java
clarity.
se:name
capability in session request.
misc.xml
Update Project JDK Version in IDE Configuration
.idea/misc.xml