P
P
pixik2016-12-15 20:35:21
Automation
pixik, 2016-12-15 20:35:21

How to automatically test business cases of gui applications under Windows?

Good time!
I once created web services and sites that used them. Business cases were clearly defined. I created scripts in Selenium that I automatically ran after the introduction of new functionality.
Now I am writing a project in MFC and graphic primitives are mostly of my own rendering. I also have business cases, but I don't know how to automatically test GUI applications like a black box. Those. the testing system should not know what is inside the program. I'm wondering if the program draws all the GUI elements correctly on a given interaction. Are there any tools for creating automated tests in my case? And how would you solve this problem? Very interesting opinion!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Ryabov, 2017-03-24
@vasily-v-ryabov

From open-source projects, I would recommend pywinauto. We just automated GUI tests for MFC applications on it (since 2010), although now it supports a lot more on Windows and development is underway on Linux (still in the initial stage). I know people who, for example, switch from paid HP UFT to pywinauto.
pywinauto.github.io The
best place to start is with the Getting Started Guide (it covers all the basic concepts). For MFC, a default backend based on the Win32 API is enough (pywinauto hides all the details).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question