578a8070f8
Bumps [MSTest.TestAdapter](https://github.com/microsoft/testfx) from 3.5.2 to 3.6.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/microsoft/testfx/releases">MSTest.TestAdapter's releases</a>.</em></p> <blockquote> <h2>v3.6.1</h2> <p>See the release notes <a href="https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#3.6.1">here</a></p> <h2>v3.6.0</h2> <p>See the release notes <a href="https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#3.6.0">here</a></p> <p>Special shoutout to <a href="https://github.com/SimonCropp"><code>@SimonCropp</code></a> for his exceptional contribution in improving the quality of the repository.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/microsoft/testfx/blob/main/docs/Changelog.md">MSTest.TestAdapter's changelog</a>.</em></p> <blockquote> <h2><!-- raw HTML omitted -->[3.6.1] - 2024-10-03</h2> <p>See full log <a href="https://github.com/microsoft/testfx/compare/v3.6.0...v3.6.1">here</a></p> <h3>Fixed</h3> <ul> <li>MSTEST0016: Fix typo in rule message and description by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3808">#3808</a></li> <li>MSTEST0018: fix false positive with data member visibility by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3866">#3866</a></li> <li>Fix MSTEST0036 is shown for cases where no shadowing happens by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> <a href="https://redirect.github.com/microsoft/testfx/pull/3881">#3881</a></li> <li>Bump VSTest to v17.11.1 by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a></li> <li>Fix MSTest hook to be always generated by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3889">#3889</a></li> <li>Fix CollectionAssert.AreEqual fails for list of strings using IEqualityComparer following by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3886">#3886</a></li> <li>Fix CollectionAssert.AreEqual for collection of collections ignores even-items by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3893">#3893</a></li> </ul> <h3>Artifacts</h3> <ul> <li>MSTest: <a href="https://www.nuget.org/packages/MSTest/3.6.1">3.6.1</a></li> <li>MSTest.TestFramework: <a href="https://www.nuget.org/packages/MSTest.TestFramework/3.6.1">3.6.1</a></li> <li>MSTest.TestAdapter: <a href="https://www.nuget.org/packages/MSTest.TestAdapter/3.6.1">3.6.1</a></li> <li>MSTest.Analyzers: <a href="https://www.nuget.org/packages/MSTest.Analyzers/3.6.1">3.6.1</a></li> <li>MSTest.Sdk: <a href="https://www.nuget.org/packages/MSTest.Sdk/3.6.1">3.6.1</a></li> <li>Microsoft.Testing.Extensions.CrashDump: <a href="https://www.nuget.org/packages/Microsoft.Testing.Extensions.CrashDump/1.4.1">1.4.1</a></li> <li>Microsoft.Testing.Extensions.HangDump: <a href="https://www.nuget.org/packages/Microsoft.Testing.Extensions.HangDump/1.4.1">1.4.1</a></li> <li>Microsoft.Testing.Extensions.HotReload: <a href="https://www.nuget.org/packages/Microsoft.Testing.Extensions.HotReload/1.4.1">1.4.1</a></li> <li>Microsoft.Testing.Extensions.Retry: <a href="https://www.nuget.org/packages/Microsoft.Testing.Extensions.Retry/1.4.1">1.4.1</a></li> <li>Microsoft.Testing.Extensions.TrxReport: <a href="https://www.nuget.org/packages/Microsoft.Testing.Extensions.TrxReport/1.4.1">1.4.1</a></li> </ul> <h2><!-- raw HTML omitted -->[3.6.0] - 2024-09-11</h2> <p>See full log <a href="https://github.com/microsoft/testfx/compare/v3.5.2...v3.6.0">here</a></p> <h3>Added</h3> <ul> <li>Feat: Add code suppressor for CS8618 on TestContext property by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3271">#3271</a></li> <li>Feature: add support for injecting TestContext in ctor by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3267">#3267</a></li> <li>Feat: Add <code>[STATestClass]</code> by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3278">#3278</a></li> <li>Feat: Add [STATestMethod] by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3286">#3286</a></li> <li>Feat: add support for overloaded parameterized tests by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3298">#3298</a></li> <li>Improve display name for DynamicDataAttribute by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3293">#3293</a></li> <li>Feat: allow cooperative timeout by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3314">#3314</a></li> <li>MSTEST0010: report when class is abstract and inheritance is not set by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3347">#3347</a></li> <li>MSTEST0011: report when class is abstract and inheritance is not specified by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3352">#3352</a></li> <li>MSTEST0010: report if InheritanceBehavior.BeforeEachDerivedClass is set on a sealed class by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3369">#3369</a></li> <li>MSTEST0011: report if InheritanceBehavior.BeforeEachDerivedClass is set on a sealed class by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3370">#3370</a></li> <li>MSTEST0018: DynamicData usage should be valid by <a href="https://github.com/Evangelink"><code>@Evangelink</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3374">#3374</a></li> <li>Add analyzer for DeploymentItem by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3387">#3387</a></li> <li>MSTEST0004: Add code fix by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3482">#3482</a></li> <li>MSTEST0003: Add code fix by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3493">#3493</a></li> <li>Warn on invalid DisableParallelization configuration entry by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3526">#3526</a></li> <li>MSTEST0007: Add code fix by <a href="https://github.com/engyebrahim"><code>@engyebrahim</code></a> in <a href="https://redirect.github.com/microsoft/testfx/pull/3540">#3540</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
---|---|---|
.github | ||
brand | ||
build | ||
docs | ||
keys | ||
src | ||
tools | ||
.gitattributes | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
Contributing.md | ||
LICENSE | ||
README.md | ||
SECURITY.md | ||
thirdpartynotices.html |
README.md
Overview
Axe.Windows is a NuGet package for running automated accessibility tests on Windows® applications.
To get the latest version of the Axe.Windows NuGet package, visit Axe.Windows on NuGet.org.
How to run automated accessibility tests
-
Create a
Config
object usingConfig.Builder
.// Create config to specifically target a process var myConfigBuilder = Config.Builder.ForProcessId(1234); // Optional: configure to create an A11yTest file myConfigBuilder.WithOutputFileFormat(OutputFileFormat.A11yTest); // Optional: configure to output the file to a specific directory (otherwise, current directory will be used) myConfigBuilder.WithOutputDirectory(".\test-directory"); // Ready to use config var myConfig = myConfigBuilder.build();
-
Create a
Scanner
object using theScannerFactory
object with theConfig
.// Create scanner using myConfig var scanner = ScannerFactory.CreateScanner(myConfig);
-
Call the
Scan
orScanAsync
method on theScanner
object, to scan synchronously or asynchronously respectively.var scanOutput = scanner.Scan(null); // Synchronously scan with default options.
-
Check the output.
Console.WriteLine("Number of errors found in scan of first top-level window: " + scanOutput.WindowScanOutputs.first().ErrorCount);
- Use an automation test framework like UI Automation or WinAppDriver to manipulate your application
- Scan your application as many times as you need to
- Axe.Windows returns results with each scan and can optionally save each scan's results to an a11ytest file you can open with Accessibility Insights
For more details and a complete code example, please visit the automation reference page
Command line interface
Axe.Windows also has a command line interface (CLI) to simplify automated testing in build pipelines. Please check out the command line interface readme for more information.
Contributing
All contributions are welcome! Please read through our guidelines on contributions to this project.
For instructions on how to build the code, please visit building the code.
For an overview of the solution, please visit the solution overview.
More information
Visit the Overview of Axe.Windows page.
Data/Telemetry
Axe.Windows does not collect any telemetry on its own. However, the package does provide telemetric data for use by calling applications. Please see the Telemetry page for more details.
Reporting security vulnerabilities
If you believe you have found a security vulnerability in this project, please follow these steps to report it. For more information on how vulnerabilities are disclosed, see Coordinated Vulnerability Disclosure.
FAQ
Please visit our FAQ section to get answers to common questions.