Tag Archives: iOS

iOS UI Automation: Adding Screen Capture Functionality to UIAElement

UIATarget has two screen capturing functions namely captureScreenWithName and captureRectWithName. The function captureScreenWithName allows you to capture the whole iPhone screen while the captureRectWithName allows you to capture a portion of the screen as specified in the first parameter which … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

iOS UI Automation: Typing A String in a UIATextField

When using UIATextField.setValue function to enter a value to a UIATextField, events like UIControlEventEditingChanged will not fire as expected. For it to fire, you need to enter the value using the keyboard. Here’s my code snippet to type the string … Continue reading

Posted in Uncategorized | Tagged , , | 4 Comments

iOS UI Automation: Tapping the Clear Button in UITextField

Here’s a code snippet when you want to add a function “clear” that will tap the Clear button in a UITextField. this.hasKeyboardFocus() checks whether the current UIATextField object has the keyboard focus. If not, then you have to tap the … Continue reading

Posted in Uncategorized | Tagged , , | 1 Comment

References on Unit Testing & UI Automation for iOS Applications

I found the following references helpful in my research on Unit Testing and UI Automation for iOS applications. There are a lot of tools to use to automate iOS testing and I’m very sure that I didn’t cover them all … Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments

How to Setup Logic Test Type of Unit Testing in Xcode 4

Apple documentation on Unit Testing Applications are about Xcode 3. I thought of posting a blog on how to do it in Xcode 4. 1. Add a new target. In Xcode, click on File | New | New Target. 2. … Continue reading

Posted in Uncategorized | Tagged , , , , , | 1 Comment