SlideShare a Scribd company logo
IOS App testing with XCTest and XCUITest
Mobile Testing platforms for developers and testes to test their app on
targeted region specific smartphones and networks
Who we are?
What all we are going to cover?
 IOS Automation challenges
 Current tool options
 Introduction to XCTest and XCUITest
 Creating a basic automation script
 Understanding impact of XCUITest on Appium
IOS Automation challenges
 Any Automation tool has for IOS has to rely on Native Test Framework
provided by Apple ( UIAutomator or XCUITest)
 Native framework have limited set of APIs restricting the type of actions
that can be performed on Apps during Automation
 IOS App resigning and distribution profile is quite cumbersome.
What are the current options for IOS automation?
Features/Tools
Appium (>1.6
version)
Calabash XCTest XCTUITest EarlGrey
Type of Mobile
Application Supported
Native Yes Yes Yes Yes Yes
Hybrid Yes Yes Yes Yes Yes
Mobile Web Yes No No No No
Type of Automation
Scripts
UI Driven Functional
Tests
Yes Yes No Yes Yes
Unit Tests No No Yes No Yes
Scripting Language
Java, C#, Ruby,
Python, Perl
Cucumber, Ruby
Objective C,
Swift
Objective C,
Swift
Objective
C
Test Recording
capability
Partial ( Using
Appium Inspector)
No Yes Yes No
Features/Tools
Appium(Including
XCUITest)
Calabash XCTest XCTUITest EarlGrey
Multi Device Execution (on in-
house devices)
Yes ( Selenium Grid)
Framework Dev
required
Framework Dev
required
Framework Dev
required
Framework Dev
required
Multi Device Execution (on
Cloud Platforms like pCloudy)
Yes Yes Upcoming Upcoming Upcoming
Integration with CI tools
(Jenkins)
Plug-ins available Plug-ins available
Framework
Development
required
Framework
Development
required
Framework
Development
required
Ease of learning
medium medium
Complex ( For
developers)
Complex ( For
developers)
Complex ( For
developers)
Object Recognition Method
Native Object Recognition
( Based on Object
Properties)
Native Object
Recognition ( Based on
Object Properties)
Native Object
Recognition (
Based on Object
Properties)
Native Object
Recognition (
Based on
Object
Properties)
Native Object
Recognition (
Based on Object
Properties)
Support
Extremely Active
Community
Average
Supported by
Apple
Supported by
Apple
Supported by
Google
What are the current options?
Introduction to XCTest
 XCTest is testing framework provided by XCode. Released with XCode 5
 XCTest provides the ability to create
 Test case subclasses
 Test Methods
 Assertions
 Allows tests to be run directly from the source code
 Supports both Objective C and Swift
 It can be used as part of CI using XCode server and XCodeBuild.
 A significant improvement to the framework with launch of XCUITest wit
XCode 7
Introduction to XCUITest
 XCUITest is combination of XCTest and Accessibility Framework by XCode.
 Accessibility framework provides all the API to perform UI actions like Tap,
Swipe etc.
 XCUITest allows UI Testing
 Find elements on UI Interface
 Perform UI Actions on those elements
 Validate UI properties
 In terms of IOS versions , XCUITest can work for IOS 9 and above
Let’s understand the ecosystem
XCTest XCode XCodeServer XCodeBuild
Command Line
Tool to build and
execute tests.
This is used by
XcodeServer
Used for
Continuous
Integration.
Schedule bot
Runs and
generate reports
IDE where tests
be written or
recorded
Test Framework
Concept of Hosting
Understanding the difference
XCTest .app file
XCUITest UI Test Runner
.app file
Host Application
Host Application
Target Application
Test Bundle
Test Bundle
Scripting Elements
There are three core APIs
 XCUIApplications
let app = XCUIApplication()
 XCUIElements and XCUIElementQuery
let emailTextField = app.textFields["Email"]
emailTextField.typeText("testmunkdemo@testmunk.com")
 Assertion
XCTAssertEqual(app.textFields.count, 2);
Let’s create a basic test
Impact on Appium
On IOS, Appium proxies commands to UIAutomation script ( part of Instruments). UI
Automation scripts are Java scripts to interact with APP UI.
Impact on Appium
For IOS 9.x and above
UIAutomation
with
Instruments
Deprecated
and replaced
with
All the scripts written with UIA will fail with XCode 8 and can’t be run for IOS 9.3
above versions
Impact on Appium
The following capabilities need to be set after creating AppiumDriver object to run
XCUITest above v9.3
Please refer to the following blog for more information of Appium execution on pCloudy
https://www.pcloudy.com/xcuitest-for-ios-apps-and-how-to-test-with-xcode/
if (device.getVersion().compareTo(new Version("9.3")) >= 0) {
// XCUITest
keywords.typeText(By.xpath("//XCUIElementTypeApplication[1]/XCUIElement
TypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeTextField[1]"), "test@t
estname.com", "Email");
keywords.typeText(By.xpath("//XCUIElementTypeApplication[1]/XCUIElement
TypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeSecureTextField[1]"), "
testmunk", "Password");
} else {
// UIAutomation
keywords.typeText(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIATextFiel
d[1]"), "test@testname.com", "Email");
keywords.typeText(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIASecureT
extField[1]"), "testmunk", "Password");
}
XCUITest vs UIAutomation
Summary
 Launch of XCUITest has made significant impact on IOS automation
approach (new and existing)
 XCUITest is future for IOS automation.
 Appium is still the most popular choice of Automation tool for IOS Apps.
It can be used with both UIAutomation for older version and XCUITest
with 9.3 above versions.
Thank You
Let’s change the way Mobile App
Testing is performed

More Related Content

PPTX
iOS Automation: XCUITest + Gherkin
Kenneth Poon
 
PPTX
Getting Started with XCTest and XCUITest for iOS App Testing
Bitbar
 
PDF
iOS UI Testing in Xcode
Jz Chang
 
PDF
Testing iOS10 Apps with Appium and its new XCUITest backend
Testplus GmbH
 
PDF
UI Testing with Earl Grey
Shyam Bhat
 
PDF
iOS UIAutomation
Jz Chang
 
PDF
Automated Xcode 7 UI Testing
Jouni Miettunen
 
iOS Automation: XCUITest + Gherkin
Kenneth Poon
 
Getting Started with XCTest and XCUITest for iOS App Testing
Bitbar
 
iOS UI Testing in Xcode
Jz Chang
 
Testing iOS10 Apps with Appium and its new XCUITest backend
Testplus GmbH
 
UI Testing with Earl Grey
Shyam Bhat
 
iOS UIAutomation
Jz Chang
 
Automated Xcode 7 UI Testing
Jouni Miettunen
 

What's hot (20)

PDF
Make XCUITest Great Again
Kenneth Poon
 
PDF
Xcode 7 UI Testing - Xcake Dublin, October 2015
roland99
 
PDF
[XCode] Automating UI Testing
Phineas Huang
 
PPTX
Mobile Worshop Lab guide
Man Chan
 
PDF
Automated Testing with GHUnit and KIF
Michele Titolo
 
PDF
Android Building, Testing and reversing
Enrique López Mañas
 
PPTX
Ios ui automation test framework
Winter Hong
 
PDF
Xcode7 UI Automation
Sushant Choudhary
 
PDF
少し幸せになる技術
kamedon39
 
PPTX
SwtBot: Unit Testing Made Easy
Ankit Goel
 
KEY
SWTBot Tutorial
Chris Aniszczyk
 
PPT
JsUnit
Alex Chaffee
 
PDF
Ten Minutes To Tellurium
John.Jian.Fang
 
PPT
Writing and Testing JavaScript-heavy Web 2.0 apps with JSUnit
Alex Chaffee
 
PDF
Functional Testing made easy with SWTBot for Developers and Testers
Aurélien Pupier
 
PPT
Swtbot
cristitep
 
PDF
Data Flow Patterns in Angular 2 - Sebastian Müller
Sebastian Holstein
 
PDF
UI testing in Xcode 7
Dominique Stranz
 
PPT
Tellurium 0.7.0 presentation
John.Jian.Fang
 
DOCX
Activity
roopa_slide
 
Make XCUITest Great Again
Kenneth Poon
 
Xcode 7 UI Testing - Xcake Dublin, October 2015
roland99
 
[XCode] Automating UI Testing
Phineas Huang
 
Mobile Worshop Lab guide
Man Chan
 
Automated Testing with GHUnit and KIF
Michele Titolo
 
Android Building, Testing and reversing
Enrique López Mañas
 
Ios ui automation test framework
Winter Hong
 
Xcode7 UI Automation
Sushant Choudhary
 
少し幸せになる技術
kamedon39
 
SwtBot: Unit Testing Made Easy
Ankit Goel
 
SWTBot Tutorial
Chris Aniszczyk
 
JsUnit
Alex Chaffee
 
Ten Minutes To Tellurium
John.Jian.Fang
 
Writing and Testing JavaScript-heavy Web 2.0 apps with JSUnit
Alex Chaffee
 
Functional Testing made easy with SWTBot for Developers and Testers
Aurélien Pupier
 
Swtbot
cristitep
 
Data Flow Patterns in Angular 2 - Sebastian Müller
Sebastian Holstein
 
UI testing in Xcode 7
Dominique Stranz
 
Tellurium 0.7.0 presentation
John.Jian.Fang
 
Activity
roopa_slide
 
Ad

Similar to XCUITest for iOS App Testing and how to test with Xcode (20)

PDF
Understanding XCUITest Framework Your Guide to Efficient iOS Testing.pdf
pCloudy
 
PDF
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
kalichargn70th171
 
PPTX
Cross platform mobile UI automation testing
ayshrimali
 
PDF
A Comprehensive Guide to Choosing Between Appium and XCTest (UI) for iOS App ...
kalichargn70th171
 
PDF
XCUITest Introduction: Test Automation University
Shashikant Jagtap
 
PDF
XCTest_ A Complete Comprehensive Guide.pdf
kalichargn70th171
 
PDF
iOS Automation Frameworks evaluation
Serghei Moret
 
PDF
Fashionable XCUITest for iOS Apps by Shashikant Jagtap
Sauce Labs
 
PDF
SauceCon19: Fashionable XCUITest for iOS App
Shashikant Jagtap
 
PDF
A Comprehensive Guide to Cross-Platform Mobile Test Automation Using Appium.pdf
kalichargn70th171
 
PPTX
Automation testing on ios platform using appium
Ambreen Khan
 
PPTX
open-west
Konnor Willison
 
PPT
Using Selenium to Test Native Apps (Wait, you can do that?)
Sauce Labs
 
PPTX
WhatIsAppium.pptx
quanot1
 
PPT
The Future of Selenium Testing for Mobile Web and Native Apps
Sauce Labs
 
PPTX
Advanced Appium
Dan Cuellar
 
PPTX
Setting UIAutomation free with Appium
Dan Cuellar
 
PDF
[Srijan Wednesday Webinar] Mastering Mobile Test Automation with Appium
Srijan Technologies
 
PPTX
Appium.pptx
SameerAlam82
 
PPTX
Setting Apple's UI Automation Free with Appium
mobiletestsummit
 
Understanding XCUITest Framework Your Guide to Efficient iOS Testing.pdf
pCloudy
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
kalichargn70th171
 
Cross platform mobile UI automation testing
ayshrimali
 
A Comprehensive Guide to Choosing Between Appium and XCTest (UI) for iOS App ...
kalichargn70th171
 
XCUITest Introduction: Test Automation University
Shashikant Jagtap
 
XCTest_ A Complete Comprehensive Guide.pdf
kalichargn70th171
 
iOS Automation Frameworks evaluation
Serghei Moret
 
Fashionable XCUITest for iOS Apps by Shashikant Jagtap
Sauce Labs
 
SauceCon19: Fashionable XCUITest for iOS App
Shashikant Jagtap
 
A Comprehensive Guide to Cross-Platform Mobile Test Automation Using Appium.pdf
kalichargn70th171
 
Automation testing on ios platform using appium
Ambreen Khan
 
open-west
Konnor Willison
 
Using Selenium to Test Native Apps (Wait, you can do that?)
Sauce Labs
 
WhatIsAppium.pptx
quanot1
 
The Future of Selenium Testing for Mobile Web and Native Apps
Sauce Labs
 
Advanced Appium
Dan Cuellar
 
Setting UIAutomation free with Appium
Dan Cuellar
 
[Srijan Wednesday Webinar] Mastering Mobile Test Automation with Appium
Srijan Technologies
 
Appium.pptx
SameerAlam82
 
Setting Apple's UI Automation Free with Appium
mobiletestsummit
 
Ad

More from pCloudy (20)

PDF
How to generate Synthetic Data for an effective App Testing strategy.pdf
pCloudy
 
PDF
How to Test Computer Vision Apps like Google Lens and Google Photos.pdf
pCloudy
 
PDF
Handling iFrames in Selenium Based Test Automation.pdf
pCloudy
 
PDF
What Are Virtual Devices And How To Use Them For Testing.pdf
pCloudy
 
PDF
A Complete Guide to Rapid Automation Testing.pdf
pCloudy
 
PDF
Headless Browser – A Stepping Stone Towards Developing Smarter Web Applicatio...
pCloudy
 
PDF
Choosing the Right Testing Strategy to Scale up Mobile App Testing.pdf
pCloudy
 
PDF
Redefining Mobile App Testing pCloudy’s Comprehensive Framework Arsenal.pdf
pCloudy
 
PDF
How to Optimize Apps for Digital Accessibility.pdf
pCloudy
 
PDF
Understanding public Cloud Cloud Real Devices vs. physical devices, VMs and ...
pCloudy
 
PDF
Public Cloud vs. Private Cloud Making the Right Choice for Mobile App Testing...
pCloudy
 
PDF
How does Cross Browser testing improve the User Experience.pdf
pCloudy
 
PDF
Leveraging Self-Healing Techniques to Foster Sustainable Automation Scripts.pdf
pCloudy
 
PDF
Seamless Integration of Self-Healing Automation into CICD Pipelines.pdf
pCloudy
 
PDF
Summary of Device Coverage Report 2021.pdf
pCloudy
 
PDF
SSTS Inc. Selected For The HPE Digital Catalyst Program.pdf
pCloudy
 
PDF
Test Orchestration and Its Need for Successful Automation (2).pdf
pCloudy
 
PDF
How to use Generative AI to make app testing easy.pdf
pCloudy
 
PDF
Why Enterprises Should Opt for Cloud-Based Real Device App Testing.pdf
pCloudy
 
PDF
Tips To Enhance Your Cross Browser Testing With Minimal Effort.pdf
pCloudy
 
How to generate Synthetic Data for an effective App Testing strategy.pdf
pCloudy
 
How to Test Computer Vision Apps like Google Lens and Google Photos.pdf
pCloudy
 
Handling iFrames in Selenium Based Test Automation.pdf
pCloudy
 
What Are Virtual Devices And How To Use Them For Testing.pdf
pCloudy
 
A Complete Guide to Rapid Automation Testing.pdf
pCloudy
 
Headless Browser – A Stepping Stone Towards Developing Smarter Web Applicatio...
pCloudy
 
Choosing the Right Testing Strategy to Scale up Mobile App Testing.pdf
pCloudy
 
Redefining Mobile App Testing pCloudy’s Comprehensive Framework Arsenal.pdf
pCloudy
 
How to Optimize Apps for Digital Accessibility.pdf
pCloudy
 
Understanding public Cloud Cloud Real Devices vs. physical devices, VMs and ...
pCloudy
 
Public Cloud vs. Private Cloud Making the Right Choice for Mobile App Testing...
pCloudy
 
How does Cross Browser testing improve the User Experience.pdf
pCloudy
 
Leveraging Self-Healing Techniques to Foster Sustainable Automation Scripts.pdf
pCloudy
 
Seamless Integration of Self-Healing Automation into CICD Pipelines.pdf
pCloudy
 
Summary of Device Coverage Report 2021.pdf
pCloudy
 
SSTS Inc. Selected For The HPE Digital Catalyst Program.pdf
pCloudy
 
Test Orchestration and Its Need for Successful Automation (2).pdf
pCloudy
 
How to use Generative AI to make app testing easy.pdf
pCloudy
 
Why Enterprises Should Opt for Cloud-Based Real Device App Testing.pdf
pCloudy
 
Tips To Enhance Your Cross Browser Testing With Minimal Effort.pdf
pCloudy
 

Recently uploaded (20)

PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Architecture of the Future (09152021)
EdwardMeyman
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Coupa-Overview _Assumptions presentation
annapureddyn
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Doc9.....................................
SofiaCollazos
 
Architecture of the Future (09152021)
EdwardMeyman
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 

XCUITest for iOS App Testing and how to test with Xcode

  • 1. IOS App testing with XCTest and XCUITest
  • 2. Mobile Testing platforms for developers and testes to test their app on targeted region specific smartphones and networks Who we are?
  • 3. What all we are going to cover?  IOS Automation challenges  Current tool options  Introduction to XCTest and XCUITest  Creating a basic automation script  Understanding impact of XCUITest on Appium
  • 4. IOS Automation challenges  Any Automation tool has for IOS has to rely on Native Test Framework provided by Apple ( UIAutomator or XCUITest)  Native framework have limited set of APIs restricting the type of actions that can be performed on Apps during Automation  IOS App resigning and distribution profile is quite cumbersome.
  • 5. What are the current options for IOS automation? Features/Tools Appium (>1.6 version) Calabash XCTest XCTUITest EarlGrey Type of Mobile Application Supported Native Yes Yes Yes Yes Yes Hybrid Yes Yes Yes Yes Yes Mobile Web Yes No No No No Type of Automation Scripts UI Driven Functional Tests Yes Yes No Yes Yes Unit Tests No No Yes No Yes Scripting Language Java, C#, Ruby, Python, Perl Cucumber, Ruby Objective C, Swift Objective C, Swift Objective C Test Recording capability Partial ( Using Appium Inspector) No Yes Yes No
  • 6. Features/Tools Appium(Including XCUITest) Calabash XCTest XCTUITest EarlGrey Multi Device Execution (on in- house devices) Yes ( Selenium Grid) Framework Dev required Framework Dev required Framework Dev required Framework Dev required Multi Device Execution (on Cloud Platforms like pCloudy) Yes Yes Upcoming Upcoming Upcoming Integration with CI tools (Jenkins) Plug-ins available Plug-ins available Framework Development required Framework Development required Framework Development required Ease of learning medium medium Complex ( For developers) Complex ( For developers) Complex ( For developers) Object Recognition Method Native Object Recognition ( Based on Object Properties) Native Object Recognition ( Based on Object Properties) Native Object Recognition ( Based on Object Properties) Native Object Recognition ( Based on Object Properties) Native Object Recognition ( Based on Object Properties) Support Extremely Active Community Average Supported by Apple Supported by Apple Supported by Google What are the current options?
  • 7. Introduction to XCTest  XCTest is testing framework provided by XCode. Released with XCode 5  XCTest provides the ability to create  Test case subclasses  Test Methods  Assertions  Allows tests to be run directly from the source code  Supports both Objective C and Swift  It can be used as part of CI using XCode server and XCodeBuild.  A significant improvement to the framework with launch of XCUITest wit XCode 7
  • 8. Introduction to XCUITest  XCUITest is combination of XCTest and Accessibility Framework by XCode.  Accessibility framework provides all the API to perform UI actions like Tap, Swipe etc.  XCUITest allows UI Testing  Find elements on UI Interface  Perform UI Actions on those elements  Validate UI properties  In terms of IOS versions , XCUITest can work for IOS 9 and above
  • 9. Let’s understand the ecosystem XCTest XCode XCodeServer XCodeBuild Command Line Tool to build and execute tests. This is used by XcodeServer Used for Continuous Integration. Schedule bot Runs and generate reports IDE where tests be written or recorded Test Framework
  • 10. Concept of Hosting Understanding the difference XCTest .app file XCUITest UI Test Runner .app file Host Application Host Application Target Application Test Bundle Test Bundle
  • 11. Scripting Elements There are three core APIs  XCUIApplications let app = XCUIApplication()  XCUIElements and XCUIElementQuery let emailTextField = app.textFields["Email"] emailTextField.typeText("[email protected]")  Assertion XCTAssertEqual(app.textFields.count, 2);
  • 12. Let’s create a basic test
  • 13. Impact on Appium On IOS, Appium proxies commands to UIAutomation script ( part of Instruments). UI Automation scripts are Java scripts to interact with APP UI.
  • 14. Impact on Appium For IOS 9.x and above UIAutomation with Instruments Deprecated and replaced with All the scripts written with UIA will fail with XCode 8 and can’t be run for IOS 9.3 above versions
  • 15. Impact on Appium The following capabilities need to be set after creating AppiumDriver object to run XCUITest above v9.3 Please refer to the following blog for more information of Appium execution on pCloudy https://www.pcloudy.com/xcuitest-for-ios-apps-and-how-to-test-with-xcode/
  • 16. if (device.getVersion().compareTo(new Version("9.3")) >= 0) { // XCUITest keywords.typeText(By.xpath("//XCUIElementTypeApplication[1]/XCUIElement TypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeTextField[1]"), "test@t estname.com", "Email"); keywords.typeText(By.xpath("//XCUIElementTypeApplication[1]/XCUIElement TypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeSecureTextField[1]"), " testmunk", "Password"); } else { // UIAutomation keywords.typeText(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIATextFiel d[1]"), "[email protected]", "Email"); keywords.typeText(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIASecureT extField[1]"), "testmunk", "Password"); } XCUITest vs UIAutomation
  • 17. Summary  Launch of XCUITest has made significant impact on IOS automation approach (new and existing)  XCUITest is future for IOS automation.  Appium is still the most popular choice of Automation tool for IOS Apps. It can be used with both UIAutomation for older version and XCUITest with 9.3 above versions.
  • 18. Thank You Let’s change the way Mobile App Testing is performed