On this page:
Test results
Access Continuum returns test results to users in JSON. The format of the JSON string looks something like this:
"[
{
"path": "[id='fail2']",
"engineTestId": 87,
"testContext": "Web",
"needsReview": false,
"attribute": "This SPAN (role=img) does not have a mechanism that allows an accessible name value to be calculated",
"bestPracticeId": 362,
"element": "<span id=\"fail2\" role=\"img\" src=\"images/goat-4.jpg\"></span>",
"fixType": {
"domSpec": false,
"helperText": "Specify label text that describes the content conveyed by the image."
},
"bestPracticeDescription": "Provide alternative text for images",
"severity": 10,
"noticeability": 10,
"tractability": 2,
"bestPracticeDetailsUrl": "https://amp.levelaccess.net/public/standards/view_best_practice.php?violation_id=362",
"bestPracticeStandards": [
{
"id": 1140,
"name": "Section 508 and 255 (Revised 2017)"
},
{
"id": 610,
"name": "WCAG 2.0 Level A"
},
{
"id": 1471,
"name": "WCAG 2.0 Level A & AA Baseline"
},
{
"id": 1387,
"name": "WCAG 2.1 Level A"
},
]
}
]
Name-value pairs
The table below describes the contents of each name-value pair in the JSON string.
Attribute | Description |
---|---|
path | path displays the CSS selector for the node that failed the Access Engine test. |
engineTestId | An Access Engine ID associated with the failed test. Note that engineTestId is different from the bestPracticeId and some best practices have many different tests run against them. |
needsReview |
Indicates if the test is a Guided Automatic that requires the tester to review the output and validate a defect or pass it. The attribute value is either true or false. |
testContext |
Indicates whether the testing is on a native application element or a web view element. The attribute value is either NATIVEAPP or WEB. |
attributeDetail |
A text description of the failure that describes why the element failed. Note: attributeDetail is the attribute field name in JavaScript. |
attribute |
A text description of the failure that describes why the element failed. Note: attribute is the attribute field name in Java. |
bestPracticeId | The Best Practice ID associated with the failed test. Use this ID to look up the Best Practice in the AMP Best Practice Library. |
element |
The HTML of the element that failed. For example, if a form input fails because an accessible name can't be calculated, the <input> tag and it's attributes would be the value. |
bestPracticeDescription | The name of the Best Practice that corresponds associated with the accessibility concern. |
severity |
The impact a violation has on the user experience. Severity is measured on a scale of 1-10, where 1 is the least severe and 10 is the most severe. |
noticeability |
The likelihood that a given violation will be detected by users of a system. Noticeability is measured on a scale of 1-10, where 1 is the least noticeable and 10 is the most noticeable. |
tractability |
The estimated costs associated with with fixing a violation in accordance with the best practice. Tractability is measured on a scale of 1-10, where 1 is the least tractable and 10 is the most tractable. |
bestPracticeDetailsUrl |
The URL of the violated Best Practice. Go to this URL to view the details of the violation and recommendations for remediation. You don't need an AMP license to access Best Practice details. |
bestPracticeStandards | The list of accessibility standards (e.g., WCAG 2.1 A) associated with the best practice. By default, the standards include WCAG 2.0 Any Level, WCAG 2.1 Any Level, Section 508 (Revised 2017) and WCAG 2.0 A and AA Baseline. |
fixType |
Type of fix required. For example, adding a value for an attribute. |
fix |
The values required to fixed the violation. |
helperText |
Remediation guidance for developers. |
domSpec | A Boolean field. True indicates that the violation is specific to the entire page. For example, the title or document language. False indicates it's |
Comments
0 comments
Article is closed for comments.