How to do a pixel perfect IHM test? (margins, font-size...etc)

Asked by Matt

Hi everyone,

i'm discovering Sikuli and I wonder if it is possible to do a Pixel Perfect IHM test.

I'd like to compare to pages with different margins:
- the first is OK with, let's say, a margin-top 30px
- the second is the same as 1st but with a margin-top: 40px

I've run several tests from within Sikuli and it does not found issue.

Sikuli does recognize both pages as equal to my reference screenshot.

Consequently, I suppose that it is not possible to run IHM testing with Sikuli, right?

Any help/answer is welcome.

Feel free to ask me if you need any further information about what i'd like to acheive.

I look forward to hearing from you!

@MatthieuScarset

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

what is IHM ?

you might send me example shots to sikulix--at--outlook--dot--com

Revision history for this message
Matt (tieuma) said :
#2

Hi RaiMan,

By IHM I mean Front end of my website.

For instance, I display my homepage in my browser and I duplicate this tab but I change some margins.

I put more space on top, left and right.
I add pixel margins to my titles...etc

I was expecting Sikuli to NOT recognize the second tab as correct but it does assert that this tab is the same as the first.

I have to introduce really big changes in the IHM (in the webdesign) in order for SIkuli to understand that It's not the same image.

That is why I'm thinking that Sikuli is not enought powerful/precise to run Front End pixel perfect tests.
Am I right ?

PS : i've set the scroll bar to 99% of similarity within Sikuli but it still doesn't recognize small changes in the margins and less in the font sizes.

I hope I give enought details for you to tell me if I'm right saying Sikuli is not meant to run this kind of test.

I hope someone know a workaround because I really Sikuli's ease of use and I wish I could use it to run my tests.

I look forward to hearing from you.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Maybe it helps, if you first read this before proceeding:
http://sikulix-2014.readthedocs.org/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen

... and if you want me to help, I need screenshots.

Can you help with this problem?

Provide an answer of your own, or ask Matt for more information if necessary.

To post a message you must log in.