[WIP] Add test for The Battle For Wesnoth #16539
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.