expressappframework-403852-debugging-testing-and-error-handling-functional-tests-easy-test-write-tests-csharp-vb-end-to-end-tests-with-xunit.md
You can use the xUnit framework to create and run functional tests for XAF applications. There are two ways to create such tests in XAF applications: with the Wizard (recommended) or manually. The following sections describe each option in more detail.
Tip
You can skip this step if you test only WinForms XAF applications.
XAF exposes API that allows you to use the Selenium driver to interact with browser and individual web page elements.
To run functional tests for ASP.NET Core Blazor XAF Applications, install browser drivers.
Selenium requires a path to the downloaded driver. Add a folder with that driver to the system’s PATH variable.
When you create a new solution, select the End-to-End / Functional Tests check box in the Template Kit to add an integrated functional test project in the solution.
Add a new xUnit Test Project to your solution.
In the project file, change the following:
Add EasyTest references.
Configure end-to-end tests. For this purpose, add a new Tests.cs file to your test project.
Add test code to the Tests.cs file. For example:
EasyTest.