ios - Calabash: How to record touches on iPhone -


i've recorded aand played touches via irb on iphone simulator, couldn't find how record actual device. there documentation go through?

on ios < 7 can use calabash-ios gem irb record touches , other gestures , playback later in steps.

in ios 7, apple removed playback features of uiautomation. if found feature of calabash-ios useful, please file bug report apple. https://bugreport.apple.com/

the replacement recordings in ios 7 uia_* family of functions provide bridge uiautomation scripting language.

if targeting ios < 7

  1. launch app in simulator or device
  2. open calabash console (aka irb)

    $ calabash-ios console > record_begin #### perform gestures on simulator or device > record_end 'my_special_gesture' # test worked > playback 'my_special_gesture' 
  3. you can use gesture in step then(/^i special gesture$/) playback 'my_special_gesture' end

in calabash-android, record_begin , record_end methods not yet implemented.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -