Skip to content

XCode9 UI Test. A starter app to demonstrate and experiment with the new Xcode UI testing features.

Notifications You must be signed in to change notification settings

mvemjsun/xcode9UITest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xcode9 UI Tests Demo

Summary

Sample application that introduces how to integrate XCUI Tests in your iOS apps. The app has a login screen. When the user tries to login with an incorrect password an alert is displayed. To add some features to the login screen, the app simulates a 1s delay when login button is touched and displays an authenticating message along with an activity indicator.

When a correct username and password is entered the user is shown his account dashboard. The account dashboard has two buttons one with Title Accounts and another with title Statement. Tapping the accounts button presents a test alert. Tapping the statement button presents a statement screen with some random transactions.

Prerequisites

  • XCode 9

Main test code

  • LoginScreenTests.swift - Has UI Tests for login screen
  • LoginScreen.swift - Has the Login screen definitions and interactions
  • XCTestExtension.swift - Has an XCUIElement and XCTestCase extensions.
  • StatementScreenTests.swift - Has tests for the statement screen.

Screens

Login Dashboard Accounts Statement

About

XCode9 UI Test. A starter app to demonstrate and experiment with the new Xcode UI testing features.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published