A demo project illustrating how to write UI driven functional tests for iOS apps using the UIAutomation framework.
Objective-C JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Functional Tests
MyTasks.xcodeproj
MyTasks
Readme Images
tuneup @ bdfeee4
.gitignore
.gitmodules
README.md

README.md

MyTasks UIAutomation Demo Project

A simple task list application used to demo the use of UIAutomation for automated functional testing of iOS apps.

This application accompanies the blog post entitiled 'iOS Functional Testing with UIAutomation' available here.

ScreenShot

Project Structure

  • /MyTasks contains the app source code.
  • /Functional Tests contains the UIAutomation test suite.
  • /Functional Tests/TaskList tests.js - the UIAutomation test suite containing the functiontal tests for the app.

Executing the Tests

  • Clone the repository to your local machine.
  • Open the MyTasks sample project in XCode
  • Run the app with profiling enabled by selecting Product –> Profile from the menu bar
  • In the new Instruments window pick the Automation tool
  • Load the test script by selecting Add –> Import… from the left hand pane (Scripts section). In the new finder window navigate to the project directory, open the Functional Tests folder and select the TaskList Tests.js script.
  • Switch the active pane from Trace Log to Script and hit the play button to begin execution of the tests.

Useful Resources