Playback starts YouTube’s embedded player (privacy-enhanced mode).
Xcode UI Testing - Live Tutorial Session - RWDevCon 2016 - raywenderlich.com
Channelraywenderlich.comDescription from the creator
In Xcode 7, Apple introduced the ability to UI test your application without any third-party dependencies using XCUI tests. Learn how to take advantage of the UI test recording feature, how to use accessibility features to verify your application works for your users as expected, and how to pass information into your test target even though it’s running in a totally separate process.
----
About www.raywenderlich.com:
raywenderlich.com is a website focused on developing high quality programming tutorials. Our goal is to take the coolest and most challenging topics and make them easy for everyone to learn – so we can all make amazing apps.
We are also focused on developing a strong community. Our goal is to help each other reach our dreams through friendship and cooperation. As you can see below, a bunch of us have joined forces to make this happen: authors, editors, subject matter experts, app reviewers, and most importantly our amazing readers!
----
RWDevCon is a conference focused on high quality programming tutorials. It’s right outside Washington DC, brought to you by the teams at raywenderlich.com and 360iDev. Here’s what makes RWDevCon special:
Learn about iOS development with Swift via high quality hands-on tutorials led by the authors you know and love
Strong interactive focus - follow along with the instructor and learn by doing
Make great friends and be a part of our awesome international community
UI testing gives you the ability to find and interact with the UI of your app in order to validate the properties and state of the UI elements.
UI testing includes UI recording, which gives you the ability to generate code that exercises your app's UI the same way you do, and which you can expand upon to implement UI tests. This is a great way to quickly get started writing UI tests.
Test reports are enhanced to provide detailed information about UI tests, including snapshots of the state of the UI at test failures.
UI tests rests upon two core technologies: the XCTest framework and Accessibility.
XCTest provides the framework for UI testing capabilities, integrated with Xcode. Creating and using UI testing expands upon what you know about using XCTest and creating unit tests. You create a UI test target, and you create UI test classes and UI test methods as a part of your project. You use XCTest assertions to validate that expected outcomes are true. You also get continuous integration via Xcode Server and xcodebuild. XCTest is fully compatible with both Objective-C and Swift.
Accessibility is the core technology that allows disabled users the same rich experience for iOS and macOS that other users receive. It includes a rich set of semantic data about the UI that users can use can use to guide them through using your app. Accessibility is integrated with both UIKit and AppKit and has APIs that allow you to fine-tune behaviors and what is exposed for external use. UI testing uses that data to perform its functions.
Creating UI tests in source code is similar to creating unit tests. You create a UI test target for your app; then Xcode creates a default UI test group and implementation file for you with an example test method template in the implementation file. When you create the UI test target, you specify the app that your tests will address.
UI testing works by finding an app’s UI objects with queries, synthesizing events and sending them to those objects, and providing a rich api enabling you to examine the UI objects properties and state to compare them against the expected state.
Requirements
UI testing depends upon services and APIs not only in the development tools but in the OS platforms. You'll need Xcode 7, macOS 10.11, and iOS 9 (or later versions). UI testing protects privacy:
iOS devices need to be enabled for development and connected to a trusted host.
macOS needs permissions granted to a special Xcode Helper app. You are prompted for this automatically on your first use of UI tests.
iOS devices need to be enabled for development and connected to a trusted host. macOS needs permission granted to a special Xcode Helper app (prompt automatically on first use).
----
About www.raywenderlich.com:
raywenderlich.com is a website focused on developing high quality programming tutorials. Our goal is to take the coolest and most challenging topics and make them easy for everyone to learn – so we can all make amazing apps.
We are also focused on developing a strong community. Our goal is to help each other reach our dreams through friendship and cooperation. As you can see below, a bunch of us have joined forces to make this happen: authors, editors, subject matter experts, app reviewers, and most importantly our amazing readers!
----
RWDevCon is a conference focused on high quality programming tutorials. It’s right outside Washington DC, brought to you by the teams at raywenderlich.com and 360iDev. Here’s what makes RWDevCon special:
Learn about iOS development with Swift via high quality hands-on tutorials led by the authors you know and love
Strong interactive focus - follow along with the instructor and learn by doing
Make great friends and be a part of our awesome international community
UI testing gives you the ability to find and interact with the UI of your app in order to validate the properties and state of the UI elements.
UI testing includes UI recording, which gives you the ability to generate code that exercises your app's UI the same way you do, and which you can expand upon to implement UI tests. This is a great way to quickly get started writing UI tests.
Test reports are enhanced to provide detailed information about UI tests, including snapshots of the state of the UI at test failures.
UI tests rests upon two core technologies: the XCTest framework and Accessibility.
XCTest provides the framework for UI testing capabilities, integrated with Xcode. Creating and using UI testing expands upon what you know about using XCTest and creating unit tests. You create a UI test target, and you create UI test classes and UI test methods as a part of your project. You use XCTest assertions to validate that expected outcomes are true. You also get continuous integration via Xcode Server and xcodebuild. XCTest is fully compatible with both Objective-C and Swift.
Accessibility is the core technology that allows disabled users the same rich experience for iOS and macOS that other users receive. It includes a rich set of semantic data about the UI that users can use can use to guide them through using your app. Accessibility is integrated with both UIKit and AppKit and has APIs that allow you to fine-tune behaviors and what is exposed for external use. UI testing uses that data to perform its functions.
Creating UI tests in source code is similar to creating unit tests. You create a UI test target for your app; then Xcode creates a default UI test group and implementation file for you with an example test method template in the implementation file. When you create the UI test target, you specify the app that your tests will address.
UI testing works by finding an app’s UI objects with queries, synthesizing events and sending them to those objects, and providing a rich api enabling you to examine the UI objects properties and state to compare them against the expected state.
Requirements
UI testing depends upon services and APIs not only in the development tools but in the OS platforms. You'll need Xcode 7, macOS 10.11, and iOS 9 (or later versions). UI testing protects privacy:
iOS devices need to be enabled for development and connected to a trusted host.
macOS needs permissions granted to a special Xcode Helper app. You are prompted for this automatically on your first use of UI tests.
iOS devices need to be enabled for development and connected to a trusted host. macOS needs permission granted to a special Xcode Helper app (prompt automatically on first use).
About this tutorial
raywenderlich.com published this 55:25 video tutorial on November 9, 2018. It has been watched 43,010 times on YouTube.
- Channel
- raywenderlich.com
- Category
- Education
- Duration
- 55:25
- Published
- November 9, 2018
- Views
- 43,010
- Likes
- 408
Tags
Share
This tutorial in other languages
- FRXcode interface utilisateur Test - Live Session Tutorial - RWDevCon 2016 - raywenderlich.com
- ESXcode interfaz de usuario de prueba - en vivo Sesión Tutorial - RWDevCon 2016 - raywenderlich.com
- PTXcode UI Testing - Live Session Tutorial - RWDevCon 2016 - raywenderlich.com
- ITXcode UI Testing - diretta Tutorial Sessione - RWDevCon 2016 - raywenderlich.com
- DEXcode UI Testing - Live-Tutorial Session - RWDevCon 2016 - raywenderlich.com
- NLXcode UI testen - live Tutorial Session - RWDevCon 2016 - raywenderlich.com
- RUXcode UI Тестирование - Живая Учебник Session - RWDevCon 2016 - raywenderlich.com
- PLXcode UI Testing - Live Tutorial Sesja - RWDevCon 2016 - raywenderlich.com
- JAXcodeのUIテスト - ライブチュートリアルセッション - RWDevCon 2016 - raywenderlich.com
- ARكسكودي UI اختبار - لايف الدورة دروس - RWDevCon 2016 - raywenderlich.com
- HIXcode यूआई परीक्षण - लाइव ट्यूटोरियल सत्र - RWDevCon 2016 - raywenderlich.com
- IDXcode UI Testing - Hidup Tutorial Sesi - RWDevCon 2016 - raywenderlich.com