[WIP] Add test for The Battle For Wesnoth#16539
Conversation
1badb4b to
2468b29
Compare
This commit adds a test for The Battle for Wesnoth. The test is the first test based on text based OCR needles. It checks the launch of the program, changing settings, starting a new game, recruiting and moving units, saving and loading, finishing the round and exiting the game.
2468b29 to
f63312f
Compare
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am working on it and have an version locally. I will push it when I push the other parts. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is a draft, because it requires the following PR to be merged first: os-autoinst/os-autoinst#2276
This PR adds a test for The Battle for Wesnoth. It is a proof of concept for the feature string based OCR needles.
Compared with the previous attempt to merge a test for The Battle for Wesnoth, the number of needle images was reduced from 27 to 10 with the help of OCR, even though multiple game textures needed to be compared which can't be identified by OCR due to the nature of this program.
I have verified it on a development instance for os-autoinst.
In the picture below you can see how the matched OCR needles of the draft implementation of text based OCR are presented in the frontend, where no changes were applied yet. As you can see, there is no needle image displayed for comparison, instead just the screenshot and the match percentage is visible and the step is marked green.