Enhancing UI Automation

The developer community around UI Automation is small but growing. Here are a few tools that you can learn from and that fit well within this book’s scope.

Writing Tests with Tuneup JS

Tuneup JS is one of the original test frameworks for UI Automation, developed by Alex Vollmer.[17] I mentioned it back in Choosing the Tools that Work, when we started to organize our test-script code. It comes with robust assertions like this test that checks the state of the whole screen:

 
test(​"Check the whole window"​, ​function​(target, app) {
 
assertWindow({
 
navigationBar: {
 
leftButton: { name: ​"Back"​ },
 
rightButton: { name: ​"Done"​ }
 
},
 
tableViews: [
 
{
 
cells: [
 
{ name: ​"Fred Flintstone"​ }
 
]
 
}
 
]

Get Test iOS Apps with UI Automation now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.