Anyone please let me know some links or examples for Unit testing user interface code. Is there a complete example app on that.
Thanks in Advance, Bhanu
Cocoa Touch: What to release, when to release it?
1:Programmatically Update an attribute in Core Data
I have one link this I bookmarked a while ago: Chris Hanson's blog on Unit testing Cocoa user interfaces: Tarreceive -Action. “stringWithString” vs “alloc … initWithString … autorelease” Haven't gotten around to using it myself, so I can't vouch for its usefulness. Returning a pointer to memory allocated within a functionHope it helps.. Porting WPF to Cocoa (and/or vice-versa)NSString tokenize in Objective-CWhat's the difference between Objective-C and Cocoa?
2:NSDateFormatter won't parse dates using locale settings?
You could, if your app is accessible, use Automator for testing user interfaces... Just record a workflow inside your app.... Don't know if this is good enough.. Just a suggestion..
I'm not aware of any publicly-available tools for testing UI for Cocoa applications. Depending on what you're hoping to test, you find find F-Script to be useful. Unit testing UI is generally a lot more complex than it sounds, especially since UI tends to change a lot during devlopment (and across localizations). If you're talking around directly testing whether although ton X triggers code Y, or if clicking X causes UI action Y to occur, you may be out of luck. However, you must certainly test whether methods invoked by UI job correctly..