Scalable XCUITests within iOS Pipelines - Shashikant Jagtap

28th September 2018
  • Locked
Shashikant Jagtap's profile
Shashikant Jagtap

Scalable XCUITests within iOS Pipelines - Shashikant Jagtap image
Talk Description

When it comes to iOS app development, Swift is becoming the top choice among iOS developers. It’s because of speed, type safety and simplicity of the Swift programming language. Apple also launched Xcode UI testing framework a.k.a XCUITest to test those apps written in Swift. XCUITest is extension of XCTest framework which is Apple’s unit, network and performance testing framework. Using XCUITest, we can write UI Tests in Swift and put the UI Test code in the same repository as application code which makes collaboration with developers and CI/CD practices much smoother. The traditional tools like Appium and Calabash doesn’t fits well in the native app development with Swift. Although, XCUITest has recorder to get started with UI testing, we need to use some patterns to make XCUITest more scalable. Unlike the Page Object Pattern Or Screenplay Pattern in the web testing, we need to organise XCUITests using some sort of test design pattern to make them scalable.

Swift is designed to be a protocol oriented programming language and it has some awesome features like protocols, extensions, enumerations. The patterns like Page Objects or Screenplay may work somehow but they doesn’t fit in the protocol oriented way of Swift. We can use protocol oriented approach to architect XCUITests that can be scaled easily within iOS CI/CD pipelines. In this talk, we will discuss

 

  • Protocol Oriented architecture for XCUITest and using Swift features like protocols, extensions and enumerations to write XCUITests.
  • How to organise XCUIElements using Swift extensions for better reuse
  • How to architect XCUITests for both iPhone and iPads without code duplication
  • Setting up XCUITests within iOS CI/CD pipelines
  • Tips for writing CI friendly XCUITests. e.g Stubs, Accessibility Identifiers, Real Device Tests, Xcode scheme strategy for UI Tests etc

By the end of this session, you'll be able to:

  • TBA

Shashikant is passionated about DevOps, CI/CD and Test Automation practices for iOS apps. He uses native Apple developer tools to automate iOS release pipelines with solid test automation. Currently his toolbox includes Swift, XCTest, Xcode Server, Fastlane, Multiple native Apple developer tools. He blogs regularly on iOS DevOps and Test Automation on his personal blog (XCBlog), Medium and DZone.

Suggested Content
TestBash Brighton 2025 image
On the 1st & 2nd of October 2025 we're back in Brighton for TestBash: the largest software testing conference in the UK
Explore MoT
Castelo Branco Meetup image
Tue, 6 May
The Future of Testing in an Automated World: Embracing Continuous Learning and A
MoT Advanced Certificate in Test Automation image
Ascend to leadership roles by mastering strategic skills in automation strategy creation, planning and execution
Leading with Quality
A one-day educational experience to help business lead with expanding quality engineering and testing practices.
This Week in Testing image
Debrief the week in Testing via a community radio show hosted by Simon Tomes and members of the community
Subscribe to our newsletter
We'll keep you up to date on all the testing trends.