跳到正文
cccskills
免费在 GitHub 公开

xcuitest

API reference: XCUITest. Query for element queries, waiting patterns, Swift 6 @MainActor, assertions, screenshots, launch arguments.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(20)

  • SKILL.md5.5 KB
  • assertions.md842 B
  • element-queries.md3.3 KB
  • interactions.md1.8 KB
  • launch-arguments.md1.3 KB
  • patterns.md13.1 KB
  • permissions.md5.1 KB
  • screenshots.md1021 B
  • swift6-concurrency.md1.7 KB
  • test-helpers.md2.4 KB
  • troubleshooting.md2.0 KB
  • waiting.md3.1 KB
  • xctest-index.md54.8 KB
  • xcuiapplication.md4.4 KB
  • xcuiautomation-index.md61.0 KB
  • xcuicoordinate.md5.7 KB
  • xcuielement.md11.1 KB
  • xcuielementquery.md6.0 KB
  • xcuiprotectedresource.md5.0 KB
  • xcuiscreenshot.md3.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

XCUITest Reference

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

Quick Reference

// 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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

apple-aso

免费

Optimize Apple App Store metadata in store.config.json for ASO (App Store Optimization). Use when working with store.config.json, App Store keywords, titles, subtitles, descriptions, or localizing app metadata. Helps maximize app visibility and downloads.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

Index of Apple developer documentation for iOS, macOS, and related frameworks. Use when looking up what APIs exist in a framework, browsing available documentation, or deciding what docs to fetch. Covers SwiftUI, UIKit, Core Animation (QuartzCore), XCTest, HealthKit, Combine, SwiftData, and more.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

API reference: BackgroundTasks. Query for BGTaskScheduler, app refresh, background processing.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

combine

免费

API reference: Combine. Query for publishers, subscribers, operators, async data streams.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

API reference: Core Animation (QuartzCore). Query for CALayer, CAAnimation, CABasicAnimation, CAKeyframeAnimation, CASpringAnimation, CATransaction, CAShapeLayer, CAGradientLayer, CAEmitterLayer, CATransform3D, CADisplayLink.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

API reference: Core Haptics. Query for CHHapticEngine, haptic patterns, tactile feedback.

中文简介正在准备中。当前显示原文说明。

Prisma-Labs-Dev/apple-skills3472026年9月26日 更新

查看 Prisma-Labs-Dev 的全部技能

报告此技能的问题