結果へのタグ付け

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 UI に表示されます。チームにとって便利なタグには、チーム名、ビルド番号、シミュレーターのバージョンなどがあります。

タグ付きでスキャンを送信する

以下の例では、パラメータwithTagsを使用し、"build: 0.0.1"という名前のタグをスキャンに添付しています。

func testAccessibility() throws {
    guard let result = try axe?.run(onElement: XCUIApplication()) else {
        XCTFail()
        return
    }
    try axe?.postResult(result, withTags: ["build: 0.0.1"])
}