結果をチームと共有する
Axe Developer Hubで結果を見つける
View, manage, and share results from Axe Developer Hub, where test runs will already be grouped by project ID. To create and share a direct link to your results in Developer Hub, you can follow this pattern - adding your own project ID:
https://axe.deque.com/axe-watcher/projects/<projectId>これにより、そのprojectIdの最近のすべての実行が一覧表示されるページに移動します。
スキャンURLを作成する(モバイルダッシュボード)
If you have been using the Axe DevTools Mobile Dashboard, you can still view and manage results there. In the future, the Dashboard will be replaced altogether by Axe Developer Hub. During the transition, however, you can find results in both places.
AxeResultKeyからスキャンURLを構築する
Mobile Dashboardにスキャンをアップロードすると、ドライバーから返されるスキャン結果にはaxeResultKeyオブジェクトが含まれています。このオブジェクトには三つのプロパティがあります: packageName、userId、resultId、およびuuid。最初の三つのプロパティを使用して、Mobile Dashboardにアップロードされた単一のスキャン結果への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()}.`);AxeResultKeyからスキャングループURLを構築する
前述のように、AxeResultKeyには四つのプロパティがあります: packageName、userId、resultId、およびuuid。uuidプロパティを使用して、Mobile Dashboard上のスキャン結果の最大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()}.`);