Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to automate windows forms testing?

I am familiar with nunit for unit testing of the business layer however I am looking now to automate the test of the win forms gui layer.

I have seen watin and the watin recorder for automating tests on web application by accessing the controls and automating them. However I am struggling to find a watin equivalent for windows forms (written in c# or vb.net) preferably that is open source.

Does one exist or are all products based on recording mouse and keyboard presses?

Update: I have looked at this blog post on white and it seems the sort of thing I am looking for. The blog post raises some issues but as white is only in version 0.6 these may be resolved. Be interested if others have used white or any others for comparison.

like image 849
John Avatar asked Aug 24 '08 21:08

John


People also ask

Can GUI testing be automated?

Benefits of Automated GUI testingGUI testing is mostly performed manually. However, while assessing the performance of small straightforward testers, a lot of developers write scripts for automated testing.

Can we automate Windows application?

Users can automate many Windows desktop applications with a no-code, point-and-click approach. Users can easily record actions on a Windows desktop and then turn manual, repetitive steps into automated workflows.

Can system tests be automated?

Automated testing is done through an automation tool, so more time can be spent on higher value tasks, such as exploratory tests while automating time-consuming tests, such as regression tests. While you do need spend time maintaining test scripts overall, you will increase your test coverage and scalability.


2 Answers

Check out http://www.codeplex.com/white and http://nunitforms.sourceforge.net/. We've used the White project with success.

Same Answer to a previous question

Edit

The White project has moved, and is now located on GitHub as part of TestStack.

like image 191
denis phillips Avatar answered Sep 28 '22 01:09

denis phillips


AutomatedQA's TestComplete is a good testing application to automate GUI testing. It supports more than just Windows Forms also, so you can reuse it for other applications. It is not open source and this is the best that I have found. I haven't seen an open source equivalent to WatiN. It does have a free trial, for you decide if you like it or not. The main reason I went with it, is that it really is cost effective, compared to other testing applications.

like image 32
Dale Ragan Avatar answered Sep 28 '22 02:09

Dale Ragan