ui test
Asked on 2025-06-24
1 search
UI testing in Xcode is a powerful way to ensure your app's user interface behaves as expected across different scenarios. At WWDC 2025, Apple introduced several enhancements to UI testing in Xcode, which were covered in the sessions "Record, replay, and review: UI automation with Xcode" and "What’s new in Xcode."
Key Highlights:
-
UI Automation with Xcode:
- Recording and Replaying: You can record interactions like taps and swipes, which Xcode automatically converts into Swift code. This allows you to replay these interactions across multiple devices and configurations. Record, replay, and review: UI automation with Xcode
- Automation Explorer: This tool provides a video recording of your test, allowing you to inspect elements and understand failures better. What’s new in Xcode
- Enhanced Device Support: The latest Xcode version supports automated hardware interactions, including keyboard and button presses, making UI testing more comprehensive. What’s new in Xcode
-
UI Testing Enhancements:
- XCT Hitch Metric: This new metric helps measure the responsiveness of your UI by catching hitches during animations, providing insights into performance issues. What’s new in Xcode
- Integration with Xcode Cloud: You can run your UI tests autonomously in Xcode Cloud, streamlining the testing process.
These sessions provide a comprehensive overview of the new features and improvements in UI testing, making it easier to ensure your app's UI is robust and performs well across different environments.

Record, replay, and review: UI automation with Xcode
Learn to record, run, and maintain XCUIAutomation tests in Xcode. Replay your XCTest UI tests in dozens of locales, device types, and system conditions using test plan configurations. Review your test results using the Xcode test report, and download screenshots and videos of your runs. We’ll also cover best practices for preparing your app for automation with Accessibility and writing stable, high-quality automation code.

What’s new in Xcode
Discover the latest productivity and performance advancements in Xcode 26. Learn how to leverage large language models in your development workflow. Explore editing and debugging enhancements, improved performance and testing tools, and Swift Build - the open-source build system engine used by Xcode.

Meet Swift Testing
Introducing Swift Testing: a new package for testing your code using Swift. Explore the building blocks of its powerful new API, discover how it can be applied in common testing workflows, and learn how it relates to XCTest and open source Swift.