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
- launch app in simulator or device
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'
- 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
Post a Comment