Tag Archives: Testing

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

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

Solving “Duplicate Symbol” Error When Setting Up GorillaLogic’s FoneMonkey 5

I’m trying out GorillaLogic’s FoneMonkey 5 to see how it’s going to help us with automated testing for the iOS applications. Documentation on how to set it up is adequate but missed out on a scenario wherein a static library … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments