-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[dotnet] implementation of log path property in class FirefoxDriverService #15060
base: trunk
Are you sure you want to change the base?
[dotnet] implementation of log path property in class FirefoxDriverService #15060
Conversation
fix build
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@nvborisenko Nikolay , hi 👋 |
Hi! You are doing right. The location of tests is correct, and yes, they are not ran on regular basis for now. You can execute tests in your IDE you like. |
User description
fix build
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
This pull request introduces logging functionality to the
FirefoxDriverService
class and adds corresponding tests to ensure the new feature works correctly. The most important changes include adding a new property for specifying the log path, updating command-line arguments to include the log path, and adding tests to verify logging behavior.Enhancements to
FirefoxDriverService
:logPath
and a public propertyLogPath
to specify the path for service logging. [1] [2]CommandLineArguments
property to include the log path in the command-line arguments if it is set.Tests for logging functionality:
FirefoxDriverServiceTests
with tests to verify that theLogPath
property can be set, and that the log file is created and contains content when the service starts.FirefoxDriverTest
to ensure that logging to a file works as expected and that theLogPath
is null by default.Motivation and Context
these changes are a part of issue #12273
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Added
LogPath
property toFirefoxDriverService
for logging configuration.Updated command-line arguments to include log path if set.
Introduced tests to validate
LogPath
functionality inFirefoxDriverServiceTests
.Added integration tests in
FirefoxDriverTest
to ensure logging works as expected.Changes walkthrough 📝
FirefoxDriverService.cs
Introduced `LogPath` property and updated command-line arguments
dotnet/src/webdriver/Firefox/FirefoxDriverService.cs
LogPath
property for specifying log file path.logPath
to store the log path.FirefoxDriverServiceTests.cs
Added unit tests for `LogPath` in FirefoxDriverService
dotnet/test/firefox/FirefoxDriverServiceTests.cs
LogPath
property functionality.FirefoxDriverTest.cs
Added integration tests for FirefoxDriver logging
dotnet/test/firefox/FirefoxDriverTest.cs
LogPath
is null.