結果をチームと共有する

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

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を作成する(モバイルダッシュボード)

Axe DevTools Mobile Dashboardを使用している場合、これまで通りそこで結果を表示および管理できます。将来的には、ダッシュボードは完全にAxe Developer Hubに置き換えられます。しかし、移行期間中は両方の場所で結果を確認できます。AxeResultKeyからスキャンURLをまだ作成できますが、Axe Developer Hubはスキャンセッションの結果をよりスムーズに表示、管理、共有する方法を提供します。

AxeResultKeyからスキャンURLを構築する

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

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

// Once per test run
await driver.execute('mobile: axeStartSession', {
    apiKey: "<DEQUE_APIKEY>",
    projectId: "<DEQUE_PROJECT_ID>"
});

// Per screen
const result = await driver.execute('mobile: axeScan');

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スニペットを使用してください:

// Once per test run
await driver.execute('mobile: axeStartSession', {
    apiKey: "<DEQUE_APIKEY>",
    projectId: "<DEQUE_PROJECT_ID>"
});

let uuidList = [];

// As you iterate through all test cases, add the uuid for each scan result to the list
const result = await driver.execute('mobile: axeScan');
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()}.`);