What’s new in xcuitests?
Asked on 2025-06-24
1 search
In the WWDC 2025 session titled "What’s new in Xcode," several enhancements to XCUITests were introduced. These include:
-
Enhanced UI Automation Recording: Xcode now features a completely new code generation system for UI Automation Recording, making it easier to implement UI tests. You can start a recording session directly from the editor, and Xcode will generate the test code based on your interactions with the app.
-
Automation Explorer: This tool provides a full video recording of your test, allowing you to replay the test and inspect elements after the fact. It helps in identifying issues by showing attributes of every identifiable element during the test.
-
XCT Hitch Metric: A new metric in the Measure API that helps catch hitches in your app during testing. It reports metrics like Hitch time ratio, which represents the total time your app was hitching during the test.
-
Runtime API Checks: Xcode now includes more runtime API checks in the Test Plan Configuration Editor. These checks can surface framework runtime issues and threading problems, enhancing the reliability of your tests.
For more detailed information, you can refer to the What’s new in Xcode session.

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.

What’s new in Xcode 16
Discover the latest productivity and performance improvements in Xcode 16. Learn about enhancements to code completion, diagnostics, and Xcode Previews. Find out more about updates in builds and explore improvements in debugging and Instruments.

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.