Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 961 Bytes

README.md

File metadata and controls

33 lines (17 loc) · 961 Bytes

XCUITest Framework Tutorial


This repository provides complete example of setting up XCUITest Framework using Screen Objects Pattern for iOS Automation Testing. Original Tutorial is available in my blog: Getting Started with Xcode UI Testing, Running iOS tests in parallel.


Overview

Screen Objects

  • AddPlayerScreen.swift
  • HomeScreen.swift
  • SettingsScreen.swift

Test Case class

  • AddPlayerTests.swift

How to tap Button

settingsButton.tap()

Verify that Element is exist on the screen

XCTAssertTrue(homeScreen.isPlayerDisplayed(name: testPlayerName1, balance: defaultPlayerBalance, currency: defaultCurrency))

How to type text

currencyTextField.clearAndEnterText(text: currency)