Automated MFC-based user interface testing

I am looking to start downloading automatic functionality tests on my user interface application, and wondered what is the best software to run these tests. Preferably the software will be able to interact with Visuall C ++ 2005. I have googled various software, but there are so many that I'm not sure what is best for what I need. Thanks.

+4
source share
2 answers

for automated software tests I would recommend the Google test. There is a very good q & a on this platform, which you can find here.

In addition, there is CPPUnitLite, which was developed by the author of Effective Work with Obsolete Code , Michael Pers.

I used AutoIt scripts to test the MFC application just a little, but it was not so easy to maintain them properly and create an efficient logging system for failed tests.

However, unit tests depend heavily on the architecture of your program and the structure of your class — especially on dependencies on other components / classes. Therefore, if you already have an existing MFC application that was not built with unit tests in mind, you will probably have to reorganize a lot of things. Therefore, I would recommend this book. You can also use the classic Martin Fowler Refactoring .

+1
source

Have you watched AutoIt ? This is a common GUI scripting language that can also be used with C ++ / C #. I use it to automate parts of testing adding Visual Studio.

+1
source

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


All Articles