présentation sikulix
TRANSCRIPT
20/10/2015 Paris Software Craftsmanship - Simon Guimezanes
SikuliX
Simon [email protected]@guimezanes
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 »
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
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
20/10/2015 Paris Software Craftsmanship - Simon Guimezanes
Where it shines● « Tout terrain »● Simple d'utilisation● Approximation des images● Support et documentation
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)
20/10/2015 Paris Software Craftsmanship - Simon Guimezanes
Démo API
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