JDK-8317114 : Provide failure handlers for PassFailJFrame
  • Type: Enhancement
  • Component: client-libs
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-09-27
  • Updated: 2024-02-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Some manual tests would benefit from capturing the screenshots of its windows or the entire screen when the test fails.

The screenshot feature is already provided by JDK-8294535. Yet the tester needs to click the button explicitly.

Here I propose adding an additional failure handler which automatically captures screenshots when the tester clicks the Fail button.

(The first failure handler is to get the failure reason.)
Comments
This is also applicable to test/jdk/java/awt/TrayIcon/TrayIconScalingTest.java. The TrayIconScalingTest.java test has a screenshot button after JDK-8315071, yet it could be handled automatically when the Fail button is pressed.
28-02-2024

The test/jdk/java/awt/Frame/DefaultSizeTest.java test could use this feature to automatically create the screenshot if the tester fails the test. This is even more convenient that adding an option to take the screenshot explicitly as proposed in JDK-8317112.
28-09-2023