[java] DriverFinderTest property fixture doesn't clear/restore selenium.webdriver.verbose

Đang mở Phù hợp với người mới
#17,836 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@stefanpoia đang làm issue này rồi.

Từ ngày 22/10/2026.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
88/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
testing

Hướng nghiên cứu

Mở java/test/org/openqa/selenium/remote/service/DriverFinderTest.java:81-100 và so sánh fixture của nó với phần thiết lập tương ứng trong LoggingOptionsTest.java, RemoteWebDriverInitializationTest.java và RetryRequestTest.java. Chạy DriverFinderTest sau khi cập nhật fixture; hoàn tất có nghĩa là cả selenium.debug và selenium.webdriver.verbose đều được lưu, xóa trước khi kiểm thử và khôi phục sau đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Motivation

Follow-up to #17832/#17833. That PR's round-2 review pass fixed the identical fixture-hygiene gap (test setup only saving/clearing selenium.debug, not its legacy alias selenium.webdriver.verbose) in LoggingOptionsTest.java, RemoteWebDriverInitializationTest.java, and RetryRequestTest.java.

java/test/org/openqa/selenium/remote/service/DriverFinderTest.java:81-100 has the same gap: its property save/restore only handles selenium.debug, so a JVM with selenium.webdriver.verbose set externally could leak state across tests in this file. It was out of scope for the round-2 coder (not in the original findings list) so it's tracked here rather than fixed silently.

Suggested fix

Mirror the fixture pattern already applied to the three files above: save both properties before the test, clear both, restore both after.

Context

Umbrella tracker: #17833

Ngôn ngữ chính
Java
Star
34.6k
Fork
8.7k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
86

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SeleniumHQ/selenium

Tất cả issue của SeleniumHQ/selenium

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.