Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Automating interface testing with JRuby and Sikuli

Automating interface testing with JRuby and Sikuli

Creating a Diablo 3 bot and pwning your friends by showin! off your superior intelect and amazing coding skills

Rodrigo Franco

November 03, 2012
Tweet

More Decks by Rodrigo Franco

Other Decks in Technology

Transcript

  1. “interface testin is the process of testin a product's user

    interface to ensure it meets its written specifications.” http://en.wikipedia.or /wiki/Graphical_user_interface_testin
  2. Creatin a Diablo 3 bot and pwnin your friends by

    showin off your superior intelect and amazin codin skills
  3. 1 - initializin the bot 2 - clickin at fixed

    points 3 - auto-movement 4 - findin the cellar 5 - restartin the run 6 - creatin lo s 7 - enterin the cellar 8 - attackin the demons 9 - ettin the old today’s menu
  4. class DiabloBot attr_accessor :screen, :image_path, :sikuli def initialize screen =

    Screen.new sikuli = SikuliScript.new image_path = File.dirname( File.expand_path($0) ) end end
  5. - define X key for auto-move - press X ->

    walk - press X -> stop auto-movement
  6. - press ESC - click at ‘Leave Game’ - wait

    - click at ‘Resume Game’ - wait a bit more
  7. - position the character - activate ran ed attack -

    wait enou h time - deactivate the attack - collect the money! $$$