Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unit testing WPF GUI Framework

I am using NUnit to test my model, but what is the best framework to test the WPF GUI, That make it easy to test user input, binding ...

Thank you

like image 330
David MZ Avatar asked Jun 24 '11 11:06

David MZ


2 Answers

I prefer to use MVVM.

This moves most of the code to the ViewModel. The ViewModel can be tested using the testing tools in Visual Studio such as MS Test or NUnit.

For UI tests that remain (mostly custom controls) you could use a UI Automation test suite such as White on codeplex.

like image 157
Emond Avatar answered Sep 22 '22 05:09

Emond


TestComplete is a great piece of software for automated UI testing - works with WPF. http://smartbear.com/products/qa-tools/automated-testing/

It will cost you though: at least $999.

like image 20
Kieren Johnstone Avatar answered Sep 23 '22 05:09

Kieren Johnstone