Testing Suites for .Net / WPF Based Applications

I am interested in automating some of the application / system level tests in the existing assortment. Our product range consists of several different applications written in .Net 3.5 and using WPF for presentation level.

Ultimately, I am interested in finding an application testing package that is capable of running scripts and reports. I would like to somehow identify / record the scripts and see which scripts passed / failed the test.

I have no experience in automated application testing. Can anyone recommend a test kit?

+4
source share
7 answers

Some other structures -

White interface testing scheme:

http://www.codeplex.com/white

http://blogs.msdn.com/b/john_daddamio/archive/2008/04/04/testing-wpf-applications-with-the-white-ui-test-framework.aspx

TestApi - test API library:

http://testapi.codeplex.com/

XAML Compliance Suite V1:

http://blogs.msdn.com/b/llobo/archive/2010/07/07/xaml-compliance-suite-v1.aspx

Also look at these articles -

Automation of user interface tests in WPF applications:

http://msdn.microsoft.com/en-us/magazine/dd483216.aspx

and WPF Application Quality Guide:

http://windowsclient.net/wpf/white-papers/wpf-app-quality-guide.aspx

and a similar stackoverflow question also contains some more links -

How to test WPF user interface?

How to test WPF user interface?

+5
source

I have been using QTP . It is nice but expensive. The choice of instrument depends on the amount of money you can spend.

+1
source

I would avoid recording and playback systems because they produce fragile tests. These systems look fine until you change the application and you are forced to transcode your tests.

A newer and more flexible approach is in tools like IcuTest ( http://www.IcuTest.com/ ).

+1
source

Visual Studio 2010 includes a new GUI testing product. Test Manager 2010 is included in Visual Studio 2010 Professional Professional and Visual Studio 2010 Ultimate and allows you to record and play back actions in graphical applications, as well as provide rich reports.

The tools integrate with Team Foundation Server 2010 to store test cases, test runs, and log errors detected during testing.

This blog post (after all!) Provides an overview of the testing process and tools in Visual Studio. Focus on the test workflow and watch additional videos for more information.

+1
source

If you are ready to invest this work, I found the White Framework , which is built on the Microsoft UI Automation API (supports WinForms, WPF and Win32), to be the most flexible and customizable approach. I used more than 2500 tests (> 12 hours of work) to develop the GUI automation test suite.

The white structure can also be integrated into either NUnit or MSTest.

+1
source

NUnit is the generally accepted best .NET tester. As for integration testing, etc., Not sure about that.

If you want to test your WPF applications, pretty much the only way to use MVVM. Separating view data from everything else allows you to use the unit test dummy view. If you have not already done so, it is probably not worth it, as it is such a great architectural change.

0
source

Source: https://habr.com/ru/post/1315492/


All Articles