This repo contains a fixture to enable automated testing of WPF/WinForms applications along with a number of demo FitNesse pages. It only works on Windows since it uses Windows UI technology.
The steps to install are very similar to that of installing the FibonacciDemo.
Differences are:
-
Download the repo code as a zip file and extract the contents of the folder
FitNesseFitSharpUiAutomation-master
into%LOCALAPPDATA%\FitNesse
. -
Go to the solution folder:
cd /D %LOCALAPPDATA%\FitNesse\UiAutomation
-
If you have .NET 5 SDK installed:
- Build solution:
dotnet build --configuration release UiAutomation.sln
- Go to fixture folder:
cd UiAutomation
- Publish, including selecting the right runtime:
dotnet publish -o bin\Deploy\net5.0-windows -f net5.0-windows -c release -r win-x64 UiAutomation.csproj
- Build solution:
-
If you don't have .NET 5 SDK installed:
download UiAutomation.zip
from the latest release and extract it intoUiAutomation/UiAutomation
-
Go to the assemby folder
UiAutomation\UiAutomation\bin\Deploy\net5.0-windows
. -
Edit
config.xml
and validate that it points to an existingSystem.Windows.Forms.dll
.
You can find out the right version via the commanddotnet --list-runtimes | find "Desktop.App 5"
-
Run FitNesse
-
Run the suite: Open a browser and enter the URL http://localhost:8080/FitSharpDemos.UiAutomationSuite?suite
Have a look at the wiki.
Enter an issue or provide a pull request.