SlideShare a Scribd company logo
Automated Testing
with GHUnit and KIF
             Michele Titolo
Sr. Mobile Engineer / Prolific Interactive
            @micheletitolo
Automated Testing with GHUnit and KIF
Why test your code?
Automated Testing with GHUnit and KIF
Automated Testing with GHUnit and KIF
Automated Testing with GHUnit and KIF
Types of Frameworks
Types of Frameworks
Types of Frameworks

• Unit Testing
Types of Frameworks

• Unit Testing
• UI Testing
Choosing Frameworks
Unit
Unit
Unit


• OCUnit/SenTestKit
Unit


• OCUnit/SenTestKit
• GHUnit
UI
UI
UI

• UIAutomation
UI

• UIAutomation
• Frank
UI

• UIAutomation
• Frank
• KIF
Automated Testing with GHUnit and KIF
GHUnit
Demo
Setup
GHUnit has it’s own target
GHTestCase
Automation
Apple keeps breaking testing from CLI
JUnit test results
Gotchas
Vertical slices of functionality
Apple breaks things
UI Testing is difficult
KIF
Demo
Setup
KIF has it’s own target
KIFTestController
KIFTestScenario & KIFTestStep
Automation
ios-sim
https://github.com/phonegap/ios-sim
/usr/local/bin/ios-sim launch $APPFILE --family ipad >
! ! /tmp/KIF-ipad-$$.out 2>&1
Test Output
cp "`grep "JUNIT XML RESULTS AT " /tmp/KIF-ipad-$$.out | sed
's/.*JUNIT XML RESULTS AT //'`" 'test-reports/KIF-ipad-
results.xml'
Automated Testing with GHUnit and KIF
Automated Testing with GHUnit and KIF
Gotchas
[scenario addStep:[KIFTestStep stepToWaitForTimeInterval:1
! description:@"wait"]];


[scenario addStep:[KIFTestStep !
! stepToWaitForViewWithAccessibilityLabel:@"Table"]];
[KIFTestScenario setDefaultStepsToSetUp:[KIFTestStep
! setupSteps]];
[scenario addStepsFromArray:[LoginTestStep
! stepsToLoginWithEmail:TEST_EMAIL
! password:TEST_PASSWORD]];
[scenario addStep:[KIFTestStep !! ! ! ! ! ! !
! stepToScrollToItemWithAccessibilityLabel:@"Settings"]];
Automated Testing with GHUnit and KIF
In Summary
Do tests help you write
better code?
Do tests help you write
better code?
Yes.
Do writing tests add to
dev time?
Do writing tests add to
dev time?
Yes.
Is testing worth the
extra time?
Is testing worth the
extra time?
Absolutely.
The End
https://github.com/mtitolo/UICatalog-Tests




             Michele Titolo
             @micheletitolo

More Related Content

PPTX
Ios ui automation test framework
PDF
UI Testing with Earl Grey
PPTX
Getting Started with XCTest and XCUITest for iOS App Testing
PPTX
XCUITest for iOS App Testing and how to test with Xcode
PDF
How To Build iOS Apps Without interface Builder
PDF
Mobile App Testing ScanAgile 2012
PDF
Tech Talk #5 : KIF-iOS Integration Testing Framework - Nguyễn Hiệp
PDF
Creating web api and consuming- part 1
Ios ui automation test framework
UI Testing with Earl Grey
Getting Started with XCTest and XCUITest for iOS App Testing
XCUITest for iOS App Testing and how to test with Xcode
How To Build iOS Apps Without interface Builder
Mobile App Testing ScanAgile 2012
Tech Talk #5 : KIF-iOS Integration Testing Framework - Nguyễn Hiệp
Creating web api and consuming- part 1

What's hot (20)

PDF
Best Strategy for Developing App Architecture and High Quality App
PDF
Continous UI testing with Espresso and Jenkins
PPTX
Tutorial 1
PDF
Full Stack Flutter Testing
PPTX
Android course (lecture2)
PDF
Angular EE - Special Workshop by Nir Kaufman
PPTX
Dive into Angular, part 4: Angular 2.0
PPTX
React native: building shared components for Android and iOS
PPTX
Android Test Pyramid - Ágiles 2013
DOCX
Calabash my understanding
PPTX
Mobile Automation with Appium
PDF
"I have a framework idea" - Repeat less, share more.
PPTX
Comparison between Eclipse and Android Studio for Android Development
PPTX
Mobile automation using Appium
PDF
Automated UI Testing Frameworks
PDF
MVC-RS par Grégoire Lhotelier
PDF
Future of Mobile Automation, Appium Steals it
PPTX
Cross Platform Appium Tests: How To
PPTX
0 to Angular in 45 Mins
PDF
Android 3.1 - Portland Code Camp 2011
Best Strategy for Developing App Architecture and High Quality App
Continous UI testing with Espresso and Jenkins
Tutorial 1
Full Stack Flutter Testing
Android course (lecture2)
Angular EE - Special Workshop by Nir Kaufman
Dive into Angular, part 4: Angular 2.0
React native: building shared components for Android and iOS
Android Test Pyramid - Ágiles 2013
Calabash my understanding
Mobile Automation with Appium
"I have a framework idea" - Repeat less, share more.
Comparison between Eclipse and Android Studio for Android Development
Mobile automation using Appium
Automated UI Testing Frameworks
MVC-RS par Grégoire Lhotelier
Future of Mobile Automation, Appium Steals it
Cross Platform Appium Tests: How To
0 to Angular in 45 Mins
Android 3.1 - Portland Code Camp 2011
Ad

Similar to Automated Testing with GHUnit and KIF (20)

PPTX
PPT from Geekle QA Global Summit 2023 conference
PDF
YuryMakedonov_GUI_TestAutomation_QAI_Canada_2007_14h
PPTX
Automated Generation, Evolution and Maintenance: a perspective for mobile GUI...
PDF
Unit testing
PDF
Shift Left Mobile Application Testing
PPTX
CI, CD -Tools to integrate without manual intervention
PPTX
Quality in dev ops east 2017
PDF
Release Automation: Better Quality, Faster Deployment, Amazing ROI
PDF
NIWeek 2017 - Automated Test of LabVIEW FPGA Code: CI and Jenkins 2 Pipelines
PPTX
Suparna - XCUITest
PDF
2012 mobile testingsummit-moet
PPTX
Appium vs Espresso and XCUI Test
PDF
Eclipse Testing Day 2010. Xored Q7
PDF
Woodoo - an open source mobile testing framework
PDF
Katalon Studio - A Codeless Automation Tool.pdf
PDF
2012 java one-con3648
PPTX
What's New with Perfecto? - Mid-Year Edition
PDF
Fashionable XCUITest for iOS Apps by Shashikant Jagtap
PPSX
Ci2d - The Colossal Hood For Agile Development And Deployment
PDF
EEF : Sexy Properties, Wizards and Views - EclipseCon 11
PPT from Geekle QA Global Summit 2023 conference
YuryMakedonov_GUI_TestAutomation_QAI_Canada_2007_14h
Automated Generation, Evolution and Maintenance: a perspective for mobile GUI...
Unit testing
Shift Left Mobile Application Testing
CI, CD -Tools to integrate without manual intervention
Quality in dev ops east 2017
Release Automation: Better Quality, Faster Deployment, Amazing ROI
NIWeek 2017 - Automated Test of LabVIEW FPGA Code: CI and Jenkins 2 Pipelines
Suparna - XCUITest
2012 mobile testingsummit-moet
Appium vs Espresso and XCUI Test
Eclipse Testing Day 2010. Xored Q7
Woodoo - an open source mobile testing framework
Katalon Studio - A Codeless Automation Tool.pdf
2012 java one-con3648
What's New with Perfecto? - Mid-Year Edition
Fashionable XCUITest for iOS Apps by Shashikant Jagtap
Ci2d - The Colossal Hood For Agile Development And Deployment
EEF : Sexy Properties, Wizards and Views - EclipseCon 11
Ad

More from Michele Titolo (20)

PDF
Writing Design Docs for Wide Audiences
PDF
Beam Me Up: Voyaging into Big Data
PDF
APIs: The Good, The Bad, The Ugly
PDF
Tackling the Big, Impossible Project
PDF
No Microservice is an Island
PDF
From iOS to Distributed Systems
PDF
More than po: Debugging in LLDB
PDF
APIs for the Mobile World
PDF
Swift Generics in Theory and Practice
PDF
Protocols promised-land-2
PDF
Multitasking
PDF
Making friendly-microservices
PDF
More Than po: Debugging in LLDB @ CocoaConf SJ 2015
PDF
The Worst Code
PDF
More than `po`: Debugging in lldb
PDF
Can't Handle My Scale v2
PDF
Can't Handle My Scale
PDF
Cocoa Design Patterns in Swift
PDF
Mastering the Project File (AltConf)
PDF
APIs: The Ugly
Writing Design Docs for Wide Audiences
Beam Me Up: Voyaging into Big Data
APIs: The Good, The Bad, The Ugly
Tackling the Big, Impossible Project
No Microservice is an Island
From iOS to Distributed Systems
More than po: Debugging in LLDB
APIs for the Mobile World
Swift Generics in Theory and Practice
Protocols promised-land-2
Multitasking
Making friendly-microservices
More Than po: Debugging in LLDB @ CocoaConf SJ 2015
The Worst Code
More than `po`: Debugging in lldb
Can't Handle My Scale v2
Can't Handle My Scale
Cocoa Design Patterns in Swift
Mastering the Project File (AltConf)
APIs: The Ugly

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
cuic standard and advanced reporting.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation theory and applications.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Big Data Technologies - Introduction.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
sap open course for s4hana steps from ECC to s4
Cloud computing and distributed systems.
Building Integrated photovoltaic BIPV_UPV.pdf
Network Security Unit 5.pdf for BCA BBA.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
cuic standard and advanced reporting.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Electronic commerce courselecture one. Pdf
Unlocking AI with Model Context Protocol (MCP)
Big Data Technologies - Introduction.pptx
MYSQL Presentation for SQL database connectivity
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation_ Review paper, used for researhc scholars
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
sap open course for s4hana steps from ECC to s4

Automated Testing with GHUnit and KIF