RFR: 8294535 : Add screen capture functionality to PassFailJFrame

Alexey Ivanov aivanov at openjdk.org
Thu May 25 22:52:56 UTC 2023


On Thu, 25 May 2023 17:47:59 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

> > It saves the images to _the current directory_. When the test is run by jtreg, the current directory is the `scratch` directory.
> 
> For me, the generated screenshot was being saved to the test folder, as I was running it as standalone test.

Which is expected because you were running the test as a standalone test. Whatever the current directory is, the images are put in the current directory. The jtreg framework sets the current directory to `scratch`.

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

PR Comment: https://git.openjdk.org/jdk/pull/14094#issuecomment-1563602553



More information about the client-libs-dev mailing list