-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[java] Use Environment variable to set driver location #15653
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
base: trunk
Are you sure you want to change the base?
[java] Use Environment variable to set driver location #15653
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
StressTest is failing in CI but passes locally. |
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.
This looks good; nice work figuring out how to stub the environment variables for the tests.
User description
🔗 Related Issues
Related to #14045
💥 What does this PR do?
Implements using environment variable for driver location in addition to system properties.
🔧 Implementation Notes
Environment variables are global in nature so that is given priority over system property if set.
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement, Tests
Description
Add support for environment variables to specify driver locations
Prioritize environment variable over system property for driver path
Update and expand unit tests for new driver location logic
Add new test dependencies for environment variable mocking
Changes walkthrough 📝
7 files
Add environment variable support for ChromeDriver location
Add environment variable support for EdgeDriver location
Add environment variable support for GeckoDriver location
Add environment variable support for IEDriver location
Update driver path resolution to check environment variable first
Add environment variable getter to DriverService base class
Add environment variable support for SafariDriver location
1 files
Add and update tests for environment variable driver location
3 files
Add system-stubs dependencies for environment variable testing
Update Maven dependencies for system-stubs and related packages
Add system-stubs dependencies to test build