8
20/10/2015 Paris Software Craftsmanship - Simon Guimezanes SikuliX Simon Guimezanes [email protected] @guimezanes

Présentation SikuliX

Embed Size (px)

Citation preview

Page 1: Présentation SikuliX

20/10/2015 Paris Software Craftsmanship - Simon Guimezanes

SikuliX

Simon [email protected]@guimezanes

Page 2: Présentation SikuliX

20/10/2015 Paris Software Craftsmanship - Simon Guimezanes

Why ?● Automatisation de tâches

longues / répétitives– Tests / Admin

– (Growth)hacking

● Selenium fail :– Clients lourds

– Clients enrichis

– HTML « sale »

Page 3: Présentation SikuliX

20/10/2015 Paris Software Craftsmanship - Simon Guimezanes

SikuliX● 2009 : Développé par le MIT (Sikuli)● Framework d'automatisation visuel ● Utilise l'écran, la souris et le clavier● Open source (MIT)● 2012 : Repris par Raimund Hocke

a.k.a. RaiMan

Page 4: Présentation SikuliX

20/10/2015 Paris Software Craftsmanship - Simon Guimezanes

SikuliX● WYSIWYG / API

● Langages :– Java + J.A. (API)

– Ruby (Scripts, JRuby)

– Python (Scripts, Jython)

● Intégré Selenium & Robot

Page 5: Présentation SikuliX

20/10/2015 Paris Software Craftsmanship - Simon Guimezanes

Where it shines● « Tout terrain »● Simple d'utilisation● Approximation des images● Support et documentation

Page 6: Présentation SikuliX

20/10/2015 Paris Software Craftsmanship - Simon Guimezanes

Where it sucks● Très dépendant de l'appareil● Monopolise● Retina HS● Headless non supporté● QWERTY● Mobiles non supportés

(mais Bluestack OK)

Page 7: Présentation SikuliX

20/10/2015 Paris Software Craftsmanship - Simon Guimezanes

Démo API

Page 8: Présentation SikuliX

20/10/2015 Paris Software Craftsmanship - Simon Guimezanes

CodeScreen screen = new Screen();

//Click on Start Menu

screen.click("images/win.PNG");

//Launch Notes

screen.paste("note");

Thread.sleep(1000);

screen.type(Key.ENTER);

Thread.sleep(1000);

//Hello world

screen.type("Kill all humans"); //Type text

screen.type(Key.ENTER); //Type Key

screen.paste(" Bender Bending Rodriguez"); //Paste text