sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36301
[Question #280712]: Sikuli Exact Image Match Failure
New question #280712 on Sikuli:
https://answers.launchpad.net/sikuli/+question/280712
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.sleep(2);
Match image=s.find("Img3.png");
System.out.println("Image matched");
} catch (Exception e) {
System.out.println ("Image not matched");
e.printStackTrace();
}
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) even if a single character differs then the test should fail. 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 to find the exact text match of the screen.
We need to sort this urgently.
Quick help is appreciated.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.