4 ms·
Any questions? We'll be around to answer them.
by puls 15y ago
Any questions? We'll be around to answer them.
- deleted 15y ago[deleted]
- ecito 15y agoHow hard would it be to add gesture support? double tap here, swipe left there, etc. Are accessibility labels the only way to reference views?
- puls 15y agoIndeed, accessibility labels are the only way to reference views. Granted, your tests are running within your process, so they sky is pretty much the limit. We're still considering the best way to implement gestures. There's some rudimentary support, but it's incomplete right now. Your input is welcome!
- firestone 15y agoAlso, keep in mind that many views just "do the right thing" as far as accessibility goes. Buttons for example will use their title as the default accessibility label if you don't set one explicitly.
- hinathan 15y agoNice! I've been looking for some proper iOS functional testing for a weekend project. Along with WaxSim this feels like enough plumbing to roll into a Jenkins plugin.
- micampe 15y agoWhy didn't you use UIAutomation? Was it lacking? (http://developer.apple.com/library/ios/#documentation/DeveloperTools/Reference/UIAutomationRef/Introduction/Introduction.html http://developer.apple.com/library/ios/#documentation/Develo...)
- spindel 15y ago1. You can't automate running of the UIAutomation tests. Square really wanted this for continuous integration. 2. Writing the UIAutomation scripts is really tedious (though it's much better in iOS [redacted]). 3. The UIAutomation tests ran very slowly. 4. Having to write all the tests in JavaScript isn't very flexible. That said, just like UIAutomation, KIF stands on the shoulders of the great accessibility features in iOS. In many ways KIF is like an Objective-C version of UIAutomation.
- micampe 15y agoI’m kinda surprised by #2: I would think a scripting language to be ideal for this kind of thing.
- spindel 15y agoOur iOS team at Square is more comfortable and efficient writing tests (and test libraries) in Objective-C than JavaScript. We actually wouldn't gain much from the 'scripting language'-ness of JavaScript, and the additional language and tool (Instruments) would make writing tests more complicated and painful.
- adolph 15y agoDoes someone have to watch the integration test occur, or does it report errors to something?
- firestone 15y agoIt should report errors automatically. For the most part, it will detect problems automatically because a step will fail to execute. The reason is reported in the log that KIF creates. For example, if you had steps to (1) enter the user name (2) enter the password (3) click "sign in" (4) hit the refresh button If the login failed for some reason, then step (4) would fail because it wouldn't be able to find the refresh button. You can also add explicit verification steps, such as "wait for the view with the accessibility label 'Refresh'" if you want further validation.
- adolph 15y agoThanks!