カスタム手法サポート
Axe Auditorでのカスタム手動テスト手法の設定
目的
axe Auditorを使用するお客様が手動テストの手法(DequeWay)を調整する必要がある場合があります。この必要性は以下の理由で生じることがあります:
- 追加または削減されたチェックを必要とする特定の内部ポリシー。
- テストを行う際に特定のツールを使用するための内規。
- 様々な問題の属性(影響、説明、推奨事項)を変更する政策決定。
このドキュメントは、axe Auditorで手動テスト手法に行えるカスタマイズについて説明し、これらの変更がどのようにDequeに戻ってパッケージ化およびホストされたインスタンスへの導入に至るかを説明しています。
動作の仕組み:役割とワークフロー
貴社のaxe AuditorインスタンスはDequeによってホストおよび管理されています。つまり、Dequeが手法のインストール、バージョン管理、パッケージ化、導入を管理します。貴社のチームは手法設定ファイルの編集のみを担当します。バージョン番号の更新、パッケージのビルド、インストールやデータベースのコマンドの実行は不要です。Dequeがそれらをすべて代理で行います。
全体のプロセスは次の通りです:
| ステップ | 担当者 | アクション |
|---|---|---|
| 1 | Deque | 貴社チームに現行手法(DequeWay)バンドルを提供。 |
| 2 | お客様 | 作業場所にバンドルを展開し、packageという名のフォルダを生成します。 |
| 3 | お客様 | 編集を行う前に元のpackageフォルダをバックアップします。 |
| 4 | お客様 | 以下のセクションに従って合意された手法の変更を行います。 |
| 5 | お客様 | 編集されたJSONファイルを始める前にで検証します。 |
| 6 | お客様 | 提供されたのと同じ構造でDequeにすべてのpackageフォルダを送り返します。 |
| 7 | Deque | 手法を適切なaxe-coreバージョンにバージョン管理し、パッケージ化およびマッピングし、テストインスタンスにデプロイして検証します。 |
| 8 | お客様 | テストインスタンスで変更を検証し、署名を確認します。 |
| 9 | Deque | 検証済み手法を本番インスタンスにデプロイします。 |
スコープノート: この文書には完全性のためにすべてのカスタマイズタイプが一覧表示されています。貴社チームが行う具体的な変更は、合意された変更範囲に沿ったものであるべきです。
開始前に
1. 元のものをバックアップします。 編集前に、解凍されたpackageフォルダのコピーを作成します。編集でバンドルが壊れた場合、これが唯一のクリーンな戻す方法です。
cp -r package package_backup_original2. 各セクションに記載されたファイルのみ編集します。 ファイルは相互依存しています。特定の変更でリストされていないファイルを編集する、またはisリストされているファイルを見落とすことは、Dequeに戻った後でしか受け取れない壊れたバンドルを生成する可能性があります。
3. 触れたすべてのファイルを検証します。 各ファイルはJSONであり、編集後に有効なJSONである必要があります(末尾のカンマ、括弧/ブラケットのバランスを取ること)。送信前に検証してください:
# Validate a single file
python3 -m json.tool package/dist/bundle/descriptions.json > /dev/null && echo "VALID" || echo "INVALID"
# Or validate every JSON file in the bundle at once
find package/dist -name "*.json" -print0 | while IFS= read -r -d '' f; do
python3 -m json.tool "$f" > /dev/null 2>&1 && echo "VALID: $f" || echo "INVALID: $f"
done4. 言語の前提。 これらの説明は英語(en)を前提としています。貴社が追加の言語で手法を必要とする場合は、Dequeに知らせてください。Dequeは設定時に言語サポートを有効にします。その場合、作成するすべての.en.jsonファイルの編集を各追加言語の対応するロケールファイル(例:.nl.json相当)にも行う必要があります。
許可される更新
特定のチェックポイントのテスト手法を更新する
特定のチェックポイントのテスト指示をaxe Auditorで変更したい場合に便利です。
更新されたファイル: package/dist/bundle/locales/checkpoints.en.json
手順:
- JSONファイル内の特定のDequeチェックポイントを見つけます(例:
1.1.1.a)。 - その特定のチェックポイントの下で
testing-methodology属性を検索します。 testing-methodologyの下にリストされているアセットタイプを適切に更新します。- ファイルを現在の場所に保存します。
注意: axe Auditorに表示されるチェックポイント名も、同じ手順を使用して変更できます。
testing-methodologyセクションを更新する代わりに、同じファイル内の該当するチェックポイントの下にあるname属性を更新してください。
ルールの影響を更新する
axe Auditor内の各問題に対する影響レベル(ブロッカー、クリティカル、重大、中程度、軽微)を変更できます。ただし、ルールのデフォルト影響を変更する必要がある場合は、次の手順に従ってください。
axe Auditorでは影響がルールレベルで保存され、WCAG成功基準やチェックポイントレベルではありません。単一のルールが複数のDequeチェックポイントに影響を与えることがあります(例:ルールID alt-text-dynamic-image-inconsistent)。ルールの影響を変更すると、このルールの違反によって発生する問題に対するデフォルトの影響が、ルールに接続されたすべて WCAG成功基準全体で変更されます。
更新されたファイル: package/dist/bundle/descriptions.json
手順:
- JSONファイル内の特定のDequeルールを見つけます(例:
alt-text-dynamic-image-inconsistent)。 - その特定のルールの下で
impact属性を検索します。 - 影響を数値で更新します(下記の表を参照)。
- ファイルを現在の場所に保存します。
影響値のマッピング
| 影響値 | axe Auditorでの影響 |
|---|---|
| 5 | ブロッカー |
| 4 | クリティカル |
| 3 | 重大 |
| 2 | 中程度 |
| 1 | 軽微 |
新しいアクセシビリティ標準を追加する(例:組織固有の標準)
既存の標準(例えばWCAG 2.1 AAやACAA)に加えて、組織固有のテスト標準をチームに提供したい場合は、次の手順を使用します。
⚠️ Deque内部 — 公開前に解決: The file list for this section references three checkpoint-related paths that are inconsistent with the rest of the document (which uses
dist/bundle/…):package/dist/checkpoints.json,package/dist/issue-descriptions.json, andpackage/dist/bundle/checkpoints.json. Confirm whetherdist/checkpoints.jsonanddist/issue-descriptions.jsonare genuinely distinct compiled files, or whether these are path errors, then update the list accordingly and remove this note.
更新されたファイル:
package/dist/bundle/standards.jsonpackage/dist/bundle/descriptions.jsonpackage/dist/bundle/testingMethodologies.jsonpackage/dist/bundle/locales/standards.en.jsonpackage/dist/checkpoints.jsonpackage/dist/issue-descriptions.jsonpackage/dist/bundle/checkpoints.json
手順:
standards.jsonで基準のための新しい配列オブジェクトを作成します。最も簡単な方法は、wcag21aaのオブジェクト全体をコピーしてファイルの一番下に追加することです。- 新しくコピーしたオブジェクトの
idを、それが表す基準を示すユニークなものに変更します。 - この新しい基準の一部であるすべての基底テスト標準を表すために、新しいオブジェクトの
rubric配列を更新します。 descriptions.jsonで、新しい標準と関連付けられているすべてのルールに対して、その新しい標準のID(standards.jsonから)をstandards配列に追加します。testingMethodologies.jsonで、この標準が適用される各デジタル資産タイプに対して、新しい標準のIDをstandards配列に追加します。standards.en.jsonで、新しい標準のIDと名前を持つ新しいオブジェクトを追加します。nameフィールドは、ユーザーがaxe Auditorのユーザーインターフェースで見るものです。dist/checkpoints.jsonで、該当するチェックポイントの各問題説明に対するstandards配列を更新します。issue-descriptions.jsonで、すべての該当するルールオブジェクトに対するstandards配列を更新します。dist/bundle/checkpoints.jsonで、正しい標準を使用して各適用可能なチェックポイントのstandards配列を更新します。
特定のルールの短いおよび長い問題記述を更新する
短い問題記述選択テキスト(短い)および各ルールの問題タイプの長い説明を更新するには、次の手順を使用します。単一のルールが複数のWCAG成功基準に影響を与えることがあります — このテキストを変更すると、それに接続されたすべて成功基準に影響します。
更新されたファイル: package/dist/bundle/locales/descriptions.en.json
手順:
descriptions.en.jsonで、特定のルールを検索します(例:alt-text-dynamic-image-inconsistent)。shortText(短い問題記述)とissueDescText(長い問題記述)のテキストを適宜更新します。- ファイルを現在の場所に保存します。
改善推奨を更新する
改善ライブラリと関連する説明をポリシーに合わせて変更したい場合は、次の手順を使用します。
更新されたファイル: package/dist/bundle/locales/recommendations.en.json
手順:
recommendations.en.jsonで、特定のルール(例:alt-text-dynamic-image-inconsistent)とチェックポイントの組み合わせを検索し、修正ライブラリを変更したいものを見つけます。recommendationType(推奨テクニック)、rule、howtofix、およびbackground(修正する推奨事項のセクション)を適切に更新します。- ファイルを現在の場所に保存します。
デジタル資産タイプを削除する
特定のアセットタイプが組織に適用されない場合に使用します(例:PDFやAndroidテストが範囲外の場合)。
更新するファイル:
dist/bundle/testingMethodologies.json— 主なテスト方法論データdist/bundle/locales/testingMethodologies.en.json— 英語の翻訳
手順1:テスト方法論ファイルから削除
ファイル:dist/bundle/testingMethodologies.json
削除したい方法論のオブジェクト全体を見つけて削除します。
// BEFORE — remove this entire object (example: "native-mobile-android"):
{
"id": "native-mobile-android",
"techniques": ["general"],
"standards": [
"wcag2a", "wcag21a", "wcag22a",
"wcag2aa", "wcag21aa", "wcag22aa",
"acaa", "en301549-wad",
"508-2017-wcag2", "508-2017-wcag21"
]
}
// AFTER — object completely removed手順2:英語ロケールファイルから削除
ファイル:dist/bundle/locales/testingMethodologies.en.json
同じ方法論オブジェクトをこのファイルから削除します。
新しいデジタル資産タイプを追加する
web-appまたはmacosの方法論など、新しいデジタル資産タイプを追加するために使用します。以下の例ではweb-appを使用していますが、必要に応じて自分のアセットタイプIDを代入してください。
更新するファイル:
dist/bundle/testingMethodologies.json— 主なテスト方法論データdist/bundle/locales/testingMethodologies.en.json— 英語の翻訳dist/bundle/locales/checkpoints.en.json— テスト方法論のセクションを含む英語のチェックポイントコンテンツdist/bundle/checkpoints.json— 主なチェックポイントデータdist/bundle/descriptions.json— テスト方法論の参照を含む問題記述dist/bundle/schemata.json— テスト方法論の参照を含むスキーマ定義
手順1:テスト方法論ファイルに追加
ファイル:dist/bundle/testingMethodologies.json
新しい方法論オブジェクトを配列に追加します。
{
"id": "web-app",
"techniques": ["general", "html", "aria", "css"],
"standards": [
"wcag2a", "wcag21a", "wcag22a",
"wcag2aa", "wcag21aa", "wcag22aa",
"acaa", "en301549-wad",
"508-2017-wcag2", "508-2017-wcag21"
]
}手順2:英語ロケールファイルに追加
ファイル:dist/bundle/locales/testingMethodologies.en.json
同じ方法論オブジェクトをこのファイルに追加します。
手順3:チェックポイントファイルへの参照を追加
ファイル:dist/bundle/checkpoints.json
新しい方法論をサポートする必要のある各チェックポイントに、そのチェックポイントのtestingMethodologies配列に追加します。
{
"id": "1.4.3.a",
"testingMethodologies": [
"desktop", "mobile", "kiosk",
"native-mobile-ios", "native-mobile-android",
"pdf",
"web-app", // ← Add this line
"ms-excel", "ms-powerpoint", "ms-word", "windows-desktop"
]
}手順4:チェックポイントロケールファイルにテスト方法論の内容を追加
ファイル:dist/bundle/locales/checkpoints.en.json
新しい方法論をサポートする必要のある各チェックポイントに、テスト方法論の内容を追加します。
{
"1.4.3.a": {
"name": "Color Contrast (Minimum)",
"testing-methodology": {
"desktop": "<ol>...</ol>",
"mobile": "<ol>...</ol>",
"native-mobile-android": "<ol>...</ol>",
"web-app": "<ol>\n<li>Open the web application in a modern browser</li>\n<li>Use browser developer tools to inspect text elements</li>\n<li>Check color contrast ratios using accessibility tools</li>\n<li>Verify contrast meets WCAG requirements</li>\n</ol>", // ← Add this new entry
"pdf": "<ol>...</ol>"
}
}
}手順5:説明ファイルへの参照を追加
ファイル:dist/bundle/descriptions.json
新しい方法論をサポートする必要のある問題記述に、そのtestingMethodologies配列に追加します。
{
"id": "some-issue-id",
"data": [
{
"type": "issue",
"testingMethodologies": [
"desktop", "mobile",
"native-mobile-android", "pdf",
"web-app" // ← Add this line
]
}
]
}手順6:スキーマファイルへの参照を追加
ファイル:dist/bundle/schemata.json
新しいテスト方法論をスキーマ定義に追加します。
{
"testingMethodologies": {
"desktop": null,
"kiosk": null,
"mobile": null,
"native-mobile-ios": null,
"native-mobile-android": null,
"pdf": null,
"web-app": null, // ← Add this line
"ms-excel": null,
"ms-powerpoint": null,
"ms-word": null,
"windows-desktop": null
}
}新しいチェックポイントを追加する
非WCAGチェックポイントを追加する
重要: 非WCAGチェックポイントは、
descriptions.jsonやrecommendations.jsonを介して事前定義された説明や推奨をサポートありませんしません。これらのチェックポイントで問題を記録する際には、ツールの独自の説明を作成機能を使用して説明と推奨を手動で入力します。
更新するファイル — 2つのみ:
package/dist/bundle/checkpoints.json— チェックポイントを定義package/dist/bundle/locales/checkpoints.en.json— ローカライズされたテスト方法論を提供
手順1:checkpoints.jsonにチェックポイントを追加
{
"id": "custom.1.1",
"requiredSenses": {
"sight": true,
"hearing": false
},
"successCriteria": "",
"automatedRules": [],
"testingMethodologies": ["desktop", "mobile"],
"grouping": "custom.1",
"categories": [],
"standards": ["custom"]
}キーフィールド:
id— カスタム形式を使用したユニークな識別子(例:custom.1.1、brand.2.3、TT.01.A、s.1.1)。successCriteria— 非WCAGチェックポイント用の空の文字列""(または"tt-01.A"のようなカスタム形式)。standards— カスタム標準識別子、例:["custom"]、["TT508"]、["smoke"]、["brand"](ありません["wcag2a"])。testingMethodologies— このチェックポイントが適用されるプラットフォーム:desktop、mobile、kiosk、native-mobile-ios、native-mobile-android、pdf、windows-desktop、ms-excel、ms-powerpoint、ms-word。requiredSenses— このチェックポイントをテストするために必要な感覚(sight、hearing:true/false)。automatedRules— 自動ルールIDのオプションの配列(通常はカスタムチェックポイント[]用の空の状態)。grouping— 組織のための論理グループ化(例:"custom.1"、"1"、"s.1")。categories— 関連するアクセシビリティカテゴリ(非WCAGの場合は[]のままにすることができます)。terms—idとordinalのプロパティを持つ用語集の用語参照のオプションの配列。
ステップ2:checkpoints.en.jsonにローカライズされたコンテンツを追加
ハイフン区切り ID形式を使用:ドットをハイフンに変換します(例:
custom-1-1、custom.1.1ではありません)。
"custom-1-1": {
"examples": "<ul>\n <li>Example 1: Describe a scenario where this applies</li>\n <li>Example 2: Describe another scenario</li>\n</ul>",
"related-techniques": {
"general": "<ul>\n <li>Technique reference 1</li>\n <li>Technique reference 2</li>\n</ul>",
"html": "<ul>\n <li>HTML-specific technique</li>\n</ul>"
},
"testing-methodology": {
"desktop": "<ol>\n <li>Step 1 for desktop testing</li>\n <li>Step 2 for desktop testing</li>\n</ol>",
"mobile": "<ol>\n <li>Step 1 for mobile testing</li>\n <li>Step 2 for mobile testing</li>\n</ol>"
},
"name": "Your Custom Checkpoint Name",
"overview": {
"general": "General description of what this checkpoint tests and why it matters for accessibility.",
"html": "HTML-specific description if applicable; otherwise can match general."
}
}改行には
\nを使用し、リストには適切なHTMLタグを使用します。
WCAGチェックポイントの追加
更新するファイル — 6ファイル 完全なWCAGチェックポイントの実装の場合:
package/dist/bundle/checkpoints.json— WCAG特定のフィールドでチェックポイントを定義します。package/dist/bundle/locales/checkpoints.en.json— ローカライズされたテスト方法論、例、関連技法(ハイフン区切りID形式を使用:1-4-3-a、1.4.3.aではありません)。package/dist/bundle/descriptions.json— 影響レベルとチェックポイント参照を含む問題の説明。package/dist/bundle/locales/descriptions.en.json— ローカライズされた問題の説明。package/dist/bundle/recommendations.json— 問題の説明にリンクする修正推奨事項。package/dist/bundle/locales/recommendations.en.json— ローカライズされた推奨事項コンテンツ(タイトル、説明、手順、リソース)。
オプション — 手動入力: 事前定義された説明や推奨事項をJSONファイルに追加することをスキップすることを選択した場合、ツールで問題を記録するときにそれらを処理できます:WCAGチェックポイントを選択し、事前定義のものではなく独自の説明を作成を選択し、その後、見つかった問題に合わせて説明(必要があれば推奨事項)を手動で入力します。
ステップ1:チェックポイントを定義
ファイル:package/dist/bundle/checkpoints.json
{
"id": "1.4.3.a",
"requiredSenses": {
"sight": true,
"hearing": false
},
"successCriteria": "1.4.3",
"automatedRules": ["color-contrast"],
"testingMethodologies": [
"desktop", "mobile", "kiosk",
"native-mobile-ios", "native-mobile-android",
"pdf", "ms-excel", "ms-powerpoint", "ms-word", "windows-desktop"
],
"grouping": "1.4",
"categories": ["cat.distinguishable"],
"standards": ["wcag2aa"]
}キーフィールド:
id— WCAG番号パターン(例:"1.4.3.a"、"2.1.1.b")。successCriteria— WCAG成功基準番号(例:"1.4.3")。standards—"wcag2a"(レベルA)、"wcag2aa"(レベルAA)、または"wcag2aaa"(レベルAAA)。automatedRules— 自動化されたルールIDの配列。grouping— WCAGガイドライン番号(例:"1.4"、"2.1")。
ステップ2:テスト方法論を追加
ファイル:package/dist/bundle/locales/checkpoints.en.json — ハイフン区切り形式を使用(1-4-3-a)。
"1-4-3-a": {
"name": "Color Contrast (Minimum)",
"overview": {
"general": "Text and images of text have a contrast ratio of at least 4.5:1, except for large text which has a contrast ratio of at least 3:1.",
"html": "Text and images of text have a contrast ratio of at least 4.5:1, except for large text which has a contrast ratio of at least 3:1."
},
"examples": "<ul>\n <li>Gray text on white background with insufficient contrast</li>\n <li>Blue text on blue background that doesn't meet requirements</li>\n</ul>",
"testing-methodology": {
"desktop": "<ol>\n <li>Identify all text content on the page</li>\n <li>Use a color contrast analyzer tool</li>\n <li>Ensure normal text has at least 4.5:1 contrast ratio</li>\n <li>Ensure large text has at least 3:1 contrast ratio</li>\n</ol>",
"mobile": "<ol>\n <li>Test on a mobile device under various lighting conditions</li>\n <li>Use mobile accessibility testing tools</li>\n <li>Verify contrast ratios meet WCAG requirements</li>\n</ol>",
"assistive-technology": "<p><strong>Screen reader testing is optional for this checkpoint.</strong></p>\n<p><strong>Using NVDA:</strong></p>\n<ol>\n <li>Navigate through text content</li>\n <li>Verify text readability</li>\n</ol>"
},
"related-techniques": {
"general": "<ul>\n <li><a href=\"https://www.w3.org/WAI/WCAG22/Techniques/general/G18\">G18: Ensuring contrast ratio of at least 4.5:1</a></li>\n</ul>",
"html": "<ul>\n <li><a href=\"https://www.w3.org/WAI/WCAG22/Techniques/css/C21\">C21: Specifying line spacing in CSS</a></li>\n</ul>"
}
}ステップ3:問題の説明を追加
ファイル:package/dist/bundle/descriptions.json
{
"id": "insufficient-color-contrast",
"data": [
{
"type": "issue",
"impact": 4,
"checkpoint": "1.4.3.a",
"standards": ["wcag2aa"],
"references": [
{
"standards": ["wcag2aa"],
"checkpoint": "1.4.3.a"
}
],
"testingMethodologies": ["desktop", "mobile"]
}
]
}ステップ4:ローカライズされた問題の説明を追加
ファイル:package/dist/bundle/locales/descriptions.en.json
新しい説明のオブジェクトを追加:
"insufficient-color-contrast": {
"shortText": "Insufficient color contrast",
"issueDescText": "Text does not have sufficient contrast against its background to meet WCAG 2.1 AA requirements."
}ステップ5:推奨事項を追加
ファイル:package/dist/bundle/recommendations.json
ハイフン区切り形式(
1-4-3-a)を使用して推奨事項IDに追加します。
{
"id": "insufficient-color-contrast-fix-1-4-3-a",
"data": [
{
"type": "recommendation",
"description": "insufficient-color-contrast"
}
]
}ステップ6:推奨事項のコンテンツを追加
ファイル:package/dist/bundle/locales/recommendations.en.json
"insufficient-color-contrast-fix-1-4-3-a": {
"title": "Improve Color Contrast",
"description": "Increase the contrast ratio between text and background colors to meet WCAG 2.1 AA requirements.",
"steps": [
"Use a color contrast analyzer to identify insufficient contrast",
"Adjust text color, background color, or both to achieve a minimum 4.5:1 ratio",
"For large text (18pt+ or 14pt+ bold), ensure a minimum 3:1 ratio",
"Test the changes across different devices and lighting conditions"
],
"resources": [
"WebAIM Color Contrast Checker",
"W3C Color Contrast Analyzer",
"Chrome DevTools Accessibility Panel"
]
}特定のチェックポイントを削除
特定のチェックポイントをテストや報告しないようにしたい場合に、これらの指示を使用してください。
更新されたファイル:
package/dist/bundle/checkpoints.jsonpackage/dist/bundle/descriptions.jsonpackage/dist/bundle/recommendations.jsonpackage/dist/bundle/locales/checkpoints.en.jsonpackage/dist/bundle/locales/recommendations.en.json
手順:
checkpoints.jsonで特定のチェックポイントを検索します(例:1.2.1.b)。このチェックポイントに関連するオブジェクト全体を削除し、有効なJSONを維持します。ファイルを保存します。descriptions.jsonで特定のチェックポイントを検索します(例:1.2.1.b)。ルールの下でチェックポイントを使用しているオブジェクトのみを削除し、有効なJSONを維持します。単一のルールが複数のチェックポイントに適用されることがある — 削除するチェックポイントのオブジェクトのみを削除し、完全なルールは削除しないでください。 ファイルを保存します。recommendations.jsonで特定のチェックポイントを検索します(例:1.2.1.b)。このチェックポイントに関連するすべてのオブジェクト(複数ある場合があります)を削除し、有効なJSONを維持します。ファイルを保存します。checkpoints.en.jsonでハイフン区切り形式を使用して特定のチェックポイントを検索します(例:1-2-1-b)。オブジェクト全体を削除し、有効なJSONを維持します。ファイルを保存します。recommendations.en.jsonでハイフン区切り形式を使用して特定のチェックポイントを検索します(例:1-2-1-b)。このチェックポイントに関連するすべてのオブジェクト(複数ある場合があります)を削除し、有効なJSONを維持します。ファイルを保存します。
Dequeに変更を返送
編集が完了し、検証された後:
- 編集されたすべてのファイルがまだJSON検証を通過することを確認してください(始める前にを参照)。
- 変更が合意された範囲に一致することを確認してください。
packageフォルダー全体を元の構造のままDequeに返送します(個々のファイルのみを送信しないでください)。
Dequeはバージョンを割り当て、バンドルをパッケージ化し、正しいaxe-coreバージョンにマッピングし、検証のためにテストインスタンスにデプロイします。チームがテストインスタンスで変更を確認し、承認した後、Dequeはメソッドを本番のインスタンスに昇格します。
サポート
このプロセスに関する質問、合意された変更範囲、または追加の言語サポートを要求するには、Dequeの担当者に連絡してください。



