結果をチームと共有する

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で結果を見つける

axe Developer Hubで結果を表示、管理、共有できます。 axe Developer Hubでは、テスト実行がプロジェクトIDで既にグループ化されています。Developer Hubで結果への直接リンクを作成し共有するには、次のパターンに従い、自分のプロジェクトIDを追加してください。

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

これにより、その projectId のすべての最近の実行が一覧表示されるページに移動します。

スキャンURLを作成する(モバイルダッシュボード)

すでに axe DevToolsモバイルダッシュボードを使用している場合、そこで結果を表示および管理することができます。将来的に、ダッシュボードは完全にaxe Developer Hubに置き換えられますが、移行期間中は両方の場所で結果を見つけることができます。

スキャンURLを作成する AxeResultKey

モバイルダッシュボードにスキャンをアップロードすると、ドライバーから返されるスキャン結果には axeResultKey オブジェクトが含まれています。このオブジェクトには3つのプロパティがあります: packageNameuserIdresultId、および uuidです。最初の3つのプロパティを使用して、モバイルダッシュボードの単一スキャンのアップロード結果へ向かうURLを作成できます。これはカスタマイズされたレポートやテスト内でスキャン結果リンクを出力する際に便利です。スキャンURLの構造については、次のものをガイドとして使用してください:
${dashboardHBaseURL}/scan?userId=${userId}&packageName=${packageName}&resultId=${resultId}

以下のスニペットは、シングルスキャンのURLをJavaScriptで構築する方法を示しています:

const axeSettings = {
      apiKey: "<your-api-key-here>"
    } 
    
    const result = await driver.execute('mobile: axeScan', axeSettings)
    
    const { packageName, userId, resultId, uuid } = result.axeResultKey;
    
    const dashboardBaseURL = "https://axe-mobile.deque.com";
    const url = new URL('/scan', dashboardBaseURL);
    url.searchParams.append('userId', userId);
    url.searchParams.append('packageName', packageName);
    url.searchParams.append('resultId', resultId);
    
    console.info(`View scan here: ${url.toString()}.`);

スキャングループURLを作成する AxeResultKey

前述の通り、 AxeResultKey には4つのプロパティがあります: packageNameuserIdresultId、および uuidです。 uuid プロパティを使用して、 *グループ* で最大20件のモバイルダッシュボード上のスキャン結果へ向かうURLを作成できます。スキャンURLの構造については、次のJavaScriptスニペットをガイドとして使用してください:

    let uuidList = [];

    // As you iterate through all test cases, add the uuid for each scan result to the a list
    const result = await driver.execute('mobile:axeScan', axeSettings);
    const uuid = result.axeResultKey["uuid"];

    uuidList.push(uuid);


    // Run this logic to print the URL after all tests complete.
    const dashboardBaseUrl = "https://axe-mobile.deque.com";
    const uuidString = uuidList.join(',');

    const url = new URL('/scans', dashboardBaseUrl);
    url.searchParams.append('uuids', uuidString);

    console.info(`View scan group here: ${url.toString()}.`);