結果のアップロード

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

スキャン結果を中央の場所にアップロードして、チーム全体でテスト実行中に見つかったアクセシビリティの問題を表示および管理できるようにします。

try axe?.postResult(result)   

将来的には、axe DevTools Mobile Dashboard は完全に axe Developer Hub に置き換えられます。しかし、移行期間中は、 DashboardDeveloper Hubの両方で結果を見つけることができます。

axe Developer Hub について

axe Developer Hub は、あなたのチーム全体がアプリ内で見つかったアクセシビリティの問題を表示および管理できる中央の場所です。

Developer Hub を使用すると、以下が可能です:

  • アクセシビリティスキャンの結果を見つける
  • スキャン/複数のスキャンを共有する
  • どの結果が最も重要であるかを判断し、テストを調整する

チームと結果を共有する

Developer Hub における結果への直接リンクを作成するには、以下のパターンに従って、自分のプロジェクトIDを追加します:

https://axe.deque.com/axe-watcher/projects/<project_ID>

これにより、指定した projectID のすべての最近の実行結果が一覧表示されるページに移動します。

Mobile Dashboard のスキャングループ URL を作成する

Mobile Dashboard にスキャンをアップロードすると、POSTリクエストから返されるスキャン結果には axeDevToolsResultKey オブジェクトがあります。このオブジェクトには4つのプロパティがあります: packageNameuserIdresultId、および uuiduuid プロパティを使用して、Dashboard 上の最大20件の結果を指すURLを作成できます。

スキャン URL 構造のガイドとして以下を使用してください:

\(dashboardBaseURL)/scans?uuids=\(uuidsSeperatedWithComma)

var uuids: [String] = []

// Navigate to screen 1 and perform a scan
let scan1 = try axe.run(onBundleIdentifier: bundleId)
// Upload scan results to dashboard
let resultKey1 = try axe.postResult(scan1)
// Add UUID to array of UUIDs
uuids.append(resultKey1.uuid)

// Navigate to screen 2 and perform a scan
let scan2 = try axe.run(onBundleIdentifier: bundleId)
// Upload scan results to dashboard
let resultKey2 = try axe.postResult(scan2)
// Add UUID to array of UUIDs
uuids.append(resultKey2.uuid)

// Add more scans - UUID list limit is 20

// Join the UUIDs into a single comma separated String
let uuidsString = uuids.joined(separator: ",")

// Construct group scan URL
var components = URLComponents(string: "https://axe-mobile.deque.com")!
components.path = "/scans"
components.queryItems = [URLQueryItem(name: "uuids", value: uuidsString)]
let url = components.url!

// Output the URL in the Xcode console. (UUIDs should be full length)
print(url) // https://axe-mobile.deque.com/scans?uuids=xxx-xxx-xxx,yyy-yyy-yyy