RFR: 8328716: [TestBug] Screen capturing utility for failed tests [v6]

Andy Goryachev angorya at openjdk.org
Fri Apr 4 20:46:55 UTC 2025


On Fri, 4 Apr 2025 20:24:16 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> Andy Goryachev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   javadoc
>
> tests/system/src/test/java/test/util/ScreenshotCapture.java line 60:
> 
>> 58:      * @throws IOException when an I/O error occurs
>> 59:      */
>> 60:     public static byte[] takeScreenshot() throws IOException {
> 
> I have no idea how to interpret this byte array. What is the use case for this method?

To save to a file, or send to a stream, for example.  This is a general purpose test utility.  The javadoc says "in PNG format".

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1746#discussion_r2029411650


More information about the openjfx-dev mailing list