RFR: 8294535 : Add screen capture functionality to PassFailJFrame
Damon Nguyen
dnguyen at openjdk.org
Fri May 26 18:52:55 UTC 2023
On Thu, 25 May 2023 22:50:15 GMT, Alexey Ivanov <aivanov 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`.
I think the mixup is similar to what I implemented for my test ([https://github.com/openjdk/jdk/pull/7310](https://github.com/openjdk/jdk/pull/7310)) when trying to save an image. I was initially advised to set a testDir path to save the image to. But it sounds like it's not needed here.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14094#issuecomment-1564794192
More information about the client-libs-dev
mailing list