prisma-labs-dev/apple-skills

xcuitest

API reference: XCUITest.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/prisma-labs-dev/apple-skills --skill xcuitest

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

XCUITest Reference

Comprehensive reference for writing reliable XCUITest UI tests in Swift 6.

Quick Reference

swift
// Basic test structure
@MainActor
final class MyUITests: XCTestCase {
    var app: XCUIApplication!

    override func setUp() {
        super.setUp()
        continueAfterFailure = false
        app = XCUIApplication()
        app.launch()
    }

    func testExample() {
        let button = app.buttons["Submit"]
        XCTAssertTrue(button.waitForExistence(timeout: 5))
        button.tap()
    }
}

Topic Guides

Curated guidance with code examples (grep-friendly):

FileContent
element-queries.mdCore API classes: XCUIApplication, XCUIElement, XCUIElementQuery, XCUICoordinate
interactions.mdTaps, presses, text input, swipes, coordinate-based and other gestures
waiting.mdwaitForExistence, XCTWaiter, non-existence, property waits, Xcode 26 KeyPath waits
swift6-concurrency.mdSwift 6 strict concurrency: @MainActor test classes, async setUp/tearDown, nonisolated
assertions.mdXCTAssert patterns, custom messages, existence checks
screenshots.mdScreenshots, XCTAttachment, screenshot-on-failure, extracting from .xcresult
launch-arguments.mdLaunch arguments/environment, UserDefaults override, localization and accessibility testing
permissions.mdresetAuthorizationStatus, XCUIProtectedResource, interruption monitors, springboard/system alerts
test-helpers.mdPage Object Model, reusable helpers, timeout constants
troubleshooting.mdCommon failures (element not found, flaky tests) and what's new in Xcode 26 / iOS 26
patterns.mdAdvanced patterns: base test class, system dialogs, scroll/wait, debugging, test organization

Downloaded Reference Files

Apple documentation pages available locally:

FileContent
xctest-index.mdFull XCTest framework index
xcuiautomation-index.mdFull XCUIAutomation framework index
xcuiapplication.mdXCUIApplication class
xcuielement.mdXCUIElement class
xcuielementquery.mdXCUIElementQuery class
xcuicoordinate.mdXCUICoordinate class
xcuiprotectedresource.mdXCUIProtectedResource enum
xcuiscreenshot.mdXCUIScreenshot class

Sources

Apple Documentation

WWDC Sessions

Community Resources

Fetching More Apple Docs

  1. Search this skill's local .md files first.
  2. If the topic is not here, check the other installed Apple skills you have available by their names, descriptions, or SKILL.md frontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet.
  3. If no installed skill has the page, use the relevant documentation path from the local XCTest or XCUIAutomation indexes with the sosumi.ai Markdown mirror. For example, /documentation/xcuiautomation/xcuielement maps to https://sosumi.ai/documentation/xcuiautomation/xcuielement.

タスクに関連する項目

同じリポジトリから

関連する Skills

すべての Skills