Class AxePageResult
Represents the complete result of accessibility test for a single page.
Inherited Members
Namespace: AxaFrance.AxeExtended.HtmlReport
Assembly: AxaFrance.AxeExtended.HtmlReport.dll
Syntax
public class AxePageResult : BaseResult
Remarks
On a complete audit of an application, the test should be performed on all pages.
Constructors
| Edit this page View SourceAxePageResult(AxeResult, PageReportBuilder)
Create a new instance of AxePageResult
Declaration
public AxePageResult(AxeResult result, PageReportBuilder htmlReportBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| AxeResult | result | Original AxeResult provided by Axe core library |
| PageReportBuilder | htmlReportBuilder | the report builder used for the page. |
Properties
| Edit this page View SourceAxeResult
Underlying AxeResult
Declaration
public AxeResult AxeResult { get; }
Property Value
| Type | Description |
|---|---|
| AxeResult |
Builder
The builder that created this report.
Declaration
public PageReportBuilder Builder { get; }
Property Value
| Type | Description |
|---|---|
| PageReportBuilder |
Inapplicable
These results indicate which rules did not run because no matching content was found on the page. For example, with no video, those rules won't run.
Declaration
public AxeResultEnhancedItem[] Inapplicable { get; }
Property Value
| Type | Description |
|---|---|
| AxeResultEnhancedItem[] |
Incomplete
These results were aborted and require further testing. This can happen either because of technical restrictions to what the rule can test, or because a javascript error occurred.
Declaration
public AxeResultEnhancedItem[] Incomplete { get; }
Property Value
| Type | Description |
|---|---|
| AxeResultEnhancedItem[] |
Passes
These results indicate what elements passed the rules.
Declaration
public AxeResultEnhancedItem[] Passes { get; }
Property Value
| Type | Description |
|---|---|
| AxeResultEnhancedItem[] |
TestEngine
The application that ran the audit.
Declaration
public AxeTestEngine TestEngine { get; }
Property Value
| Type | Description |
|---|---|
| AxeTestEngine |
TestEnvironment
Information about the current browser or node application that ran the audit.
Declaration
public AxeTestEnvironment TestEnvironment { get; }
Property Value
| Type | Description |
|---|---|
| AxeTestEnvironment |
TestRunner
The runner that ran the audit.
Declaration
public AxeTestRunner TestRunner { get; set; }
Property Value
| Type | Description |
|---|---|
| AxeTestRunner |
Timestamp
The date and time that analysis was completed.
Declaration
public DateTimeOffset? Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
Url
The URL of the page that was tested.
Declaration
public string Url { get; }
Property Value
| Type | Description |
|---|---|
| string |
Violations
These results indicate what elements failed the rules.
Declaration
public AxeResultEnhancedItem[] Violations { get; }
Property Value
| Type | Description |
|---|---|
| AxeResultEnhancedItem[] |
Methods
| Edit this page View SourceGetScore()
Calculate the score of the tested page using following weighted methods for Failed and Passed audits.
Declaration
protected override int GetScore()
Returns
| Type | Description |
|---|---|
| int | The accessibility score. |
Overrides
Remarks
- Weight of each passed and failed audit is based on impact of each axe rule: critical, seruous, moderate or minor
- Incomplete rules are not calculated in the score