RFR: 8328242: Add a log area to the PassFailJFrame [v2]

Alexey Ivanov aivanov at openjdk.org
Fri Mar 15 15:45:33 UTC 2024


On Fri, 15 Mar 2024 15:34:27 GMT, lawrence.andrews <duke at openjdk.org> wrote:

>> How about having a clear log button. Just an idea
>> Example : 
>> I have a mouse event test & I am using the logArea to add all the events into it. But when I have to file a bug & I wanted to show only the required log in the log area in the screen shot by clicking on the 'screen capture' button. I have to clear the log in the logarea and repeat the test and show only the required log in the log area. In this scenario if we can provide a 'Clear log' button will be much useful .
>
> 'Clear log' button calling logClear().

@lawrence-andrew I can't see much value…

Capturing logs by a screenshot is not something that you should ever do — copy the messages and paste them as text into a bug report.

However, you've raised a good point: the log messages could / should be copied to System.out too.

If a test fails, the logs will already be available in the test log, and the tester will not need to copy the log to preserve the messages for submitting the bug. The .jtr file from jtreg will contain all the information.

When submitting a bug, you would filter the log and paste the relevant pieces into the bug report.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526480326


More information about the client-libs-dev mailing list