Sikuli Exact Image Match Failure
Sikuli doesn't find the exact Image match on the screen (i.e) Test passes even if some part of the text Image changes.
For example,
Expected Image(captured Image for validation)
-------
Img3=>XYZOne
I performed three different test by passing different input values to the text field in the screen as shown below
Test 1 :field with the text as => XYZOne
Test 2 :field with the text as=> XYZOn
Test 3 :field with the text as=> XYXOne
My script is for Image validation:
-------
try {
Thread.
System.
} catch (Exception e) {
System.
e.printStack
}
Test Output:
------------------
Test 1:
---------
Test passes as it find the right image on the screen.
Test 2:
---------
Actual text on the screen differs from the expected one on the Img3 but test passes.
Actual one is => XYZOn
Expected Image => XYZOne
(i.e) 'e' missing in the actual text on the screen.
In this test a portion of the text matched hence the test passes which is not the expected behaviour. The test should fail even if there is minor change either at the begging or at the end or at the middle of the text(anywhere)
Test 3:
----------
This test fails as it doesn't find the some part of the test is not matched(may be the first portion of the text). But the same test passes when I used 'exists' command instead of 'find' command in the script.
Therefore there is no reliability with sikuli when it comes to Image comparison. Tool is not finding the exact match(i.e) test should fail even if a single character changes from the expected Image. This behaves very badly when it comes to date field image validation(i.e) test keeps passing even if more than one number changes in the dates.
Could someone advice me on this as how to check the exact Image match with sikuli or Is there is any better way to find the exact Image match.
We need to sort this urgently.
Quick help is appreciated.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask dinesh for more information if necessary.