結果をアップロード

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

uploadToDashboard API と ScanResultHandler を使用して、結果を中央の場所に送信し、チーム全体でアクセシビリティの問題を確認および管理できるようにします。

    val scanResultHandler = axe.scan()

    scanResultHandler?.uploadToDashboard()

将来的には、Axe DevTools モバイルダッシュボードは完全に Axe Developer Hub に置き換えられます。しかし、移行期間中は、結果を ダッシュボードDeveloper Hub の両方で確認できます。

Axe Developer Hub について

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

Developer Hub を使用すると次のことが可能です:

  • アクセシビリティスキャンの結果を見つける
  • スキャン/スキャングループを共有する
  • どの結果が最も重要かを決定し、テストを適応させる

詳細は Axe Developer Hub のドキュメント を訪問してください。

チームと結果を共有

Developer Hub で結果への直接リンクを作成するには、次のパターンを使用し、独自のプロジェクト ID を追加します:

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

これにより、その projectID に関連するすべての最新の実行がリストされているページに案内されます。

Axe Mobile ダッシュボードのスキャン グループ URL を作成する

スキャンをモバイルダッシュボードにアップロードすると、POSTリクエストから返されるスキャン結果に axeDevToolsResultKey オブジェクトが含まれます。このオブジェクトには、packageNameuserIdresultIduuid の4つのプロパティがあります。uuid プロパティを使用して、ダッシュボード上で最大20の結果を指すURLを作成できます。 スキャンURL構造のガイドとして以下を使用してください。

${dashboardBaseURL}/scans?uuids=${uuidsSeperatedWithComma}

val dashboardBaseUrl = "https://axe-mobile.deque.com"
        val uuidList = mutableListOf<String>()

        // nav to screen 1

        val scan1 = axe.scan() // Perform a scan
        // Upload result to dashboard
        val uploadResult1 = scan1?.uploadToDashboard() 
        // Add uuid from resultKey to list of uuids from all scans
        uploadResult1?.axeDevToolsResultKey?.uuid?.let { uuidList.add(it) } 

        // nav to screen 2

        // Perform next scan
        val scan2 = axe.scan() 
        // Upload result to dashboard
        val uploadResult2 = scan2?.uploadToDashboard() 
        // Add uuid from resultKey to list of uuids from all scans
        uploadResult2?.axeDevToolsResultKey?.uuid?.let { uuidList.add(it) }

        // More scans - up to 20 in total

        // Create a string of uuids separated by a comma
        val uuidString = uuidList.joinToString(",") { it }

        // Create scan group uri
        val uri = Uri.parse(dashboardBaseUrl).buildUpon()
            .appendEncodedPath("scans")
            .appendQueryParameter("uuids", uuidString)
            .build()

        println("Scan group: $uri")