Unit Testing WPF GUI Framework

I use NUnit to test my model, but what is the best structure for testing WPF GUI, which simplifies checking user input, bindings ...

thanks

+7
source share
2 answers

I prefer to use MVVM.

This translates most of the code into a ViewModel. ViewModel can be tested using testing tools in Visual Studio, such as MS Test or NUnit.

For the remaining user interface tests (mostly custom controls), you can use the UI Automation test suite, such as White on codeplex .

+10
source

TestComplete - Great Software for Automated User Interface Testing - Works with WPF. http://smartbear.com/products/qa-tools/automated-testing/

It will cost you at least: at least $ 999.

+3
source

All Articles