Hacker News new | ask | show | jobs
by mandeepj 1594 days ago
> "Raise a ticket, I can do that automatically."

Can you elaborate what you did? One option I can think of - Selenium like UI testing\navigation tool and taking screenshots?

1 comments

It was a swing application (the company's deployment tooling).

I ran through the configuration definitions and for each element created a BufferedImage the preferred size of the associated component.

Then I rendered the component to the BufferedImage using BufferedImage::getGraphics, and Component::paint.

Then I saved the image as <definition>.PNG.

Nothing magical.