Such task: I automate tests for one application through Sikulix . There is a bunch of pictures with names ( String ). These names are specified everywhere in the parameters of methods, for example, screen.click("image001") . String thongs all the time can lead to typos and other inconveniences, so I would like to create a separate class where the names of all the pictures will be given.
Search for pictures should not be. If you make everything final , then colleagues insist that the names of the constants be large. But all the scripts will then look completely from the uppercase.
How could such an idea be implemented?
Example:
Class Image { String image1 = "image1"; } Class Test { Screen screen = new Screen(); screen.click(Image.image1); }