title: Automate Blackberry 10 simulator actions
body: <p>I'm using the VMWare Player and the Blackberry 10 simulator image; I need to do some unit/integration tests automatically. I know I can use the VIX api to spin up a new Simulator and load the Blackberry image.</p>
  
  <p>What I would love to be able to do is send 'key presses', launch specific apps, and perhaps send gestures. On android there's monkeyrunner and other similar apps. However I haven't found much with respect to BB10, I know it's new but I can't be the only one with this request.</p>
  
  <p>Also, how powerful is the telnet option? I can telnet into an emulator and change directory into the apps dir, but I can't list its contents, SUDO, or run anything.</p>
  
  <p>*****UPDATE*******</p>
  
  <p>I've made some progress WRT to this, but not much. It seems that you can use the Windows API to send mouse_evt messages to the VMWare emulator; it's not 100% reliable but works enough to open apps. The big hole I have right now is being able to detect state after the action/swipe/touch is executed, aka "did the swipe I just execute work? Are we in the right app?". It would be hugely beneficial to query the device's process list, but the 'devuser' account given in the telnet example can't really do anything. </p>
  
  <p>This gist has the basics for how to touch and swipe the screen based on my experiences.
  <a href="https://gist.github.com/edgiardina/6188074" rel="noreferrer">https://gist.github.com/edgiardina/6188074</a></p>