Skip to content

iOS Screen Objects Pattern - XCUITest Framework

License

Notifications You must be signed in to change notification settings

akifev99/BoardBank

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

iOS Screen Objects Pattern - XCUITest Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Swift 95.3%
  • Ruby 4.7%