Tutorial
UIAutomation and Pusher
UIAutomation is Apple’s answer to integration tests. It allows you to drive and run assertions against your application using a javascript library that interacts with user interface elements. It’s great to have such a powerful tool, but what if you have an application that depends on external triggers, such as Pusher events?
Let me introduce you to UIAHost. More specifically, it’s method performTaskWithPathArgumentsTimeout. What this allows you to do is execute a script in the flow of your tests.
Say we want to execute the ruby script:
All we have to do in our UIAutomation script is this:
That’s a pretty simple ruby script, and will fail to find the pusher gem on any of our machines at Bendyworks because we use ...continue reading

