Scalable XCUITests within iOS Pipelines - Shashikant Jagtap

  • 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
What you’ll learn

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

  • TBA
Shashikant Jagtap's profile'

Shashikant Jagtap

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
DesignWise
Partner Peek - Ranorex 2023 #2
United by Security : The Test that Divides Us - Jahmel Harris & Claire Reckless
Testing for (and Resolving) Mobile Accessibility Issues
Bing! Goes a Brain Wave (Heuristics and Mnemonics for Mobile Apps)
Ask Me Anything with Maaike Brinkhof
Explore MoT
TestBash Brighton 2024
Thu, 12 Sep 2024, 9:00 AM
We’re shaking things up and bringing TestBash back to Brighton on September 12th and 13th, 2024.
MoT Foundation Certificate in Test Automation
Unlock the essential skills to transition into Test Automation through interactive, community-driven learning, backed by industry expertise

Tags

  • mobile
  • automation