スキャン名の更新

This page is not available in the language you requested. You have been redirected to the English version of the page.
Link to this page copied to clipboard
Not for use with personal data

Axe Developer Hub にアップロードされたスキャンは、自動的にビューコントローラーのタイトルまたはナビゲーションバーに設定されたタイトルを取得します(利用可能な場合)。スキャンをプッシュする前に他の基準に基づいてスキャン名を設定するには、postResultメソッドのwithScanNameパラメーターにカスタム引数を投稿してください。

func testAccessibility() throws {
    guard let result = try axeDevTools?.run(onElement: XCUIApplication()) else {
        XCTFail()
        return
    }
    try axeDevTools?.postResult(result, withScanName: "AUTOMATION")
}