4 ms·
In Instruments since iOS 7 this has been somewhat possible but the JavaScript context was fairly locked down. I wanted to drive my UI automation tests with Cucu
by ryanmarsh 12y ago
In Instruments since iOS 7 this has been somewhat possible but the JavaScript context was fairly locked down. I wanted to drive my UI automation tests with Cucumber (Ruby) so I wrote a little driver that patches Instruments to get access to the JavaScript context and expose it to a rudimentary server which listens for commands from your Cucumber tests.
You can check it out here https://github.com/cucumber-instruments/cucumber-instruments https://github.com/cucumber-instruments/cucumber-instruments
- lukeredpath 12y agoHave you used Appium? It does pretty much the same thing. I have an alternative Ruby library for it too: https://github.com/songkick/rubium-ios https://github.com/songkick/rubium-ios You can use it with Cucumber or Rspec or whatever.
- ryanmarsh 12y agoYes, when I wrote this some time late last year I vaguely recall that Appium wasn't quite able to fit my need. It looks much nicer now. I want something even less complex for the developer to set up. I want something that shows almost no brittleness. One way to do that is to use Apple's UIAutomation directly. I also wanted to be able to use Ruby and Cucumber, so I built as simple a bridge as I could. Selenium is popular though.